utcs

Simple program to convert utc or local time(HH:MM:SS) to seconds.

Usage no npm install needed!

<script type="module">
  import utcs from 'https://cdn.skypack.dev/utcs';
</script>

README

UTC in seconds

Simple program to convert utc or local time(HH:MM:SS) to seconds.

Installation

$ npm install utcs -g

Run with or without arguments

  • Run command utcs to get utc time in HH:MM:SS and also the same in seconds.

  • utcs command accepts additional arguments in number format to add delay to the time.

Example:

  • Run utcs in terminal:

      utc time:: 05:09:11, seconds:: 18551
      local time:: 10:39:11, seconds:: 38351
    
  • Run utcs 5 in terminal (where number 5 is additional 5mins added):

      utc time:: 05:18:27, seconds:: 19107
      local time:: 10:48:27, seconds:: 38907
    

License

MIT Free Software, Hell Yeah!