Skip to content

utc.guru is a super simple api to get the current UTC time

License

Notifications You must be signed in to change notification settings

praetoriansentry/utc.guru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UTC.guru

https://travis-ci.com/praetoriansentry/utc.guru.svg?branch=master

I wanted a very simple and free API to get the current time. That’s all. For some reason, I had a hard time finding one that didn’t require registration or anything like that. I created a very simple AWS Lambda function to return the current UTC time with a few very common formats.

To see this in production visit https://utc.guru

The idea is that this could be an easy domain to test your REST client and API code when setting up an initial project.

This is an example curl request that give you a sense of what this is:

$ curl -s 'https://utc.guru' | jq
{
  "UTC": "2018-07-23T17:37:35.703467548Z",
  "ANSIC": "Mon Jul 23 17:37:35 2018",
  "UnixDate": "Mon Jul 23 17:37:35 UTC 2018",
  "RubyDate": "Mon Jul 23 17:37:35 +0000 2018",
  "RFC822": "23 Jul 18 17:37 UTC",
  "RFC822Z": "23 Jul 18 17:37 +0000",
  "RFC850": "Monday, 23-Jul-18 17:37:35 UTC",
  "RFC1123": "Mon, 23 Jul 2018 17:37:35 UTC",
  "RFC1123Z": "Mon, 23 Jul 2018 17:37:35 +0000",
  "RFC3339": "2018-07-23T17:37:35Z",
  "RFC3339Nano": "2018-07-23T17:37:35.703467548Z",
  "Kitchen": "5:37PM",
  "Stamp": "Jul 23 17:37:35",
  "StampMilli": "Jul 23 17:37:35.703",
  "StampMicro": "Jul 23 17:37:35.703467",
  "StampNano": "Jul 23 17:37:35.703467548",
  "Unix": 1532367455,
  "UnixNano": 1532367455703467500
}

About

utc.guru is a super simple api to get the current UTC time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages