Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praetoriansentry/utc.guru
utc.guru is a super simple api to get the current UTC time
https://github.com/praetoriansentry/utc.guru
api golang lambda time utc
Last synced: about 7 hours ago
JSON representation
utc.guru is a super simple api to get the current UTC time
- Host: GitHub
- URL: https://github.com/praetoriansentry/utc.guru
- Owner: praetoriansentry
- License: mit
- Created: 2018-07-23T16:48:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T15:53:30.000Z (over 2 years ago)
- Last Synced: 2024-06-20T23:55:46.355Z (5 months ago)
- Topics: api, golang, lambda, time, utc
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: UTC.guru
#+DATE:
#+AUTHOR: John Hilliard
#+EMAIL: [email protected]
#+CREATOR: John Hilliard
#+DESCRIPTION:#+OPTIONS: toc:nil
#+LATEX_HEADER: \usepackage{geometry}
#+LATEX_HEADER: \usepackage{lmodern}
#+LATEX_HEADER: \geometry{left=1in,right=1in,top=1in,bottom=1in}
#+LaTeX_CLASS_OPTIONS: [letterpaper][[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:
#+BEGIN_SRC bash
$ 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
}
#+END_SRC