Skip to content

A JavaScript function that returns the current time with an optional offset.

License

Notifications You must be signed in to change notification settings

AntonAI/JavaScript-Current-Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Current Time

A JavaScript function that returns the current time with an optional offset.

Installation

Copy 'currentTime' function directly into your JavaScript file(s) where usage is required.

Usage

var time = currentTime(offset);

Function returns the current time in HH:MM:SS am/pm format. Specify an optional offset in seconds to subtract from the current time.

About

A JavaScript function that returns the current time with an optional offset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published