Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/billmeyer/gotime
https://github.com/billmeyer/gotime
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/billmeyer/gotime
- Owner: billmeyer
- Created: 2024-07-12T12:37:03.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-12T12:43:39.000Z (6 months ago)
- Last Synced: 2024-09-16T05:54:19.304Z (4 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 UTCLocal 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 HSTGolang 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
```