GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - datetime/seconds: Get the number of seconds for a minute, hour, day and week.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.editorconfig
.editorconfig
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
.verb.md
.verb.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 
test.js
test.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

seconds NPM version

Get the number of seconds for a minute, hour, day and week.

Install

Install with npm

npm i seconds --save

Run tests

npm test

Usage

var seconds = require('seconds');

seconds('minute');
//=> 60

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

I'd like to implement the following if someone wants to do a PR before I get around to them:

  • today: function to calculate seconds since beginning of the day
  • month: function to calculate seconds since beginning of the month
  • year: function to calculate seconds since beginning of the year

I'm also open to other ideas for this lib.

Related

From other maintainers

  • current-day-number
  • current-week-number - like week but takes a different approach to getting the week number.
  • week-hours

Other libs I maintain

  • days
  • month
  • months
  • week
  • weekday
  • year

Author

Jon Schlinkert

  • github/jonschlinkert
  • twitter/jonschlinkert

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 07, 2014. To update, run npm i -g verb && verb.

About

Get the number of seconds for a minute, hour, day and week.

Resources

Readme
MIT license
Activity
Custom properties

Stars

9 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.