Skip to content

Instantly share code, notes, and snippets.

@relrod
Last active December 19, 2015 08:09
Show Gist options
  • Save relrod/5923336 to your computer and use it in GitHub Desktop.
Save relrod/5923336 to your computer and use it in GitHub Desktop.

Eastern (Specified)

$ http --json http://hrf.cloud.fedoraproject.org/timestamp?timezone=US/Eastern < /tmp/json1
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 238
Content-Type: application/json
Date: Wed, 03 Jul 2013 22:36:07 GMT
Server: Apache/2.2.15 (Red Hat)
Via: 1.1 ccwsa2.cc.ad.cchs.net:80 (Cisco-IronPort-WSA/7.5.0-833)

{
    "results": [
        {
            "ago": "3 days ago", 
            "epoch": "1372573897.0", 
            "fulldate": "Sunday, June 30, 2013", 
            "iso": "2013-06-30T02:31:37-04:00", 
            "time": "02:31 AM", 
            "usadate": "06/30/2013"
        }
    ]
}

UTC (default)

$ http --json http://hrf.cloud.fedoraproject.org/timestamp < /tmp/json1
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 238
Content-Type: application/json
Date: Wed, 03 Jul 2013 22:35:31 GMT
Server: Apache/2.2.15 (Red Hat)
Via: 1.1 ccwsa2.cc.ad.cchs.net:80 (Cisco-IronPort-WSA/7.5.0-833)

{
    "results": [
        {
            "ago": "3 days ago", 
            "epoch": "1372573897.0", 
            "fulldate": "Sunday, June 30, 2013", 
            "iso": "2013-06-30T06:31:37+00:00", 
            "time": "06:31 AM", 
            "usadate": "06/30/2013"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment