Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 515 Bytes

README.md

File metadata and controls

8 lines (8 loc) · 515 Bytes

epoch-time-converter

A node module for converting time and date from human readable format to unix time stamp and vice versa.

Installation

Include require('/epoch'); inside the js file on the server side to use the methods of epoch-time-converter.

Usage

To convert Date and time from human readable format to unix time stamp call the below method:

Syntax: timeStamp = getUnixTimeStamp(datetime);

Where dateTime is the date and time to be passed in order to get the time stamp.