Skip to content

SamVerschueren/dev-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-time Build Status

Get the current local time of a GitHub user.

Install

$ npm install --save dev-time

Usage

const devTime = require('dev-time');

devTime('SamVerschueren').then(time => {
	console.log(time);
	//=> '2015-12-07T08:34:55+01:00'
});

API

devTime(user, [options])

user

Type: string

The GitHub user to retrieve the current local time for.

options

token

Type: string

GitHub access token.

Can be set globally with the GITHUB_TOKEN environment variable.

Related

License

MIT © Sam Verschueren

About

Get the current local time of a GitHub user.

Resources

License

Stars

Watchers

Forks

Packages

No packages published