Skip to content

A library for getting the Posix.1 TZ time string from the golang Time struct.

License

Notifications You must be signed in to change notification settings

Path-Variable/go-posix-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-posix-time

Go

This is a small library whose purpose is to format a Go time.Time struct into a POSIX.1 TZ string.

Since the POSIX timezone string contains information about transitions between DST and Standard time zones, it was not possible to implement such a format before Go 1.19 when the ZoneBounds struct became available.

The library was created because the standard time format function of Go cannot produce this format.

For specifications of the format, please refer to UNIX Standard, Base Specifications, Issue 7 2018 available on-line at the Open Group Library

If you encounter any bugs, please open issues here.