Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/billmeyer/gotime


https://github.com/billmeyer/gotime

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

# Examples of time functions in Go

```bash
$ go run main.go
```

```
Current Local Time Zone
-------------------------------------------------------
Unix.Time: 1720788136
Time.Local: 2024-07-12 07:42:16 -0500 CDT
Time.UTC: 2024-07-12 12:42:16 +0000 UTC

Local Time For A Specific Zone
----------------------------------------------------------
US/Eastern: 2024-07-12 08:42:16.902863 -0400 EDT
US/Central: 2024-07-12 07:42:16.902863 -0500 CDT
US/Mountain: 2024-07-12 06:42:16.902863 -0600 MDT
US/Pacific: 2024-07-12 05:42:16.902863 -0700 PDT
US/Alaska: 2024-07-12 04:42:16.902863 -0800 AKDT
US/Hawaii: 2024-07-12 02:42:16.902863 -1000 HST

Golang Time Package Format Examples
-------------------------------------------------------
ANSIC: Fri Jul 12 07:42:16 2024
UnixDate: Fri Jul 12 07:42:16 CDT 2024
RubyDate: Fri Jul 12 07:42:16 -0500 2024
RFC822: 12 Jul 24 07:42 CDT
RFC822Z: 12 Jul 24 07:42 -0500
RFC850: Friday, 12-Jul-24 07:42:16 CDT
RFC1123: Fri, 12 Jul 2024 07:42:16 CDT
RFC1123Z: Fri, 12 Jul 2024 07:42:16 -0500
RFC3339: 2024-07-12T07:42:16-05:00
Kitchen: 7:42AM
StampMicro: Jul 12 07:42:16.902863
StampMilli: Jul 12 07:42:16.902
StampNano: Jul 12 07:42:16.902863000
```