Formatting¶
Since dateconv converts all epoch strings to a Golang time 1 object, you can perform any operations supported by this package directly on the Epoch property. Additionally you are able to receive the following formats.
Initialize an Object¶
Modified Julian Date (MJD)¶
The MJD therefore gives the number of days since midnight on November 17, 1858. This date corresponds to 2400000.5 days after day 0 of the Julian calendar.
When called with the parameter full=True
it includes the fraction of the day.
GPS Week and Day¶
The continious count of GPS weeks started on Jan 6, 1980. A GPS week starts on Sunday (GPSD=0) at 00:00 GPS time and ends on Saturday (GPSD=6) at 23:59 GPS time.
obj.Gpsw()
// 2190
obj.Gpsd()
// 6
obj.GpsWsec()
// 518400
obj.GpsWsecDay()
// ...
obj.GpsWsecHour()
// ...
SINEX Format¶
Datetime as used in the SINEX (Solution INdependent EXchange Format) format 2.
RINEX Epoch¶
A datetime string as used in the RINEX epoch lines.
RINEX Filenames¶
Currently, RINEX v.4/v.3 and RINEX v.2 filenames are supported. If you like to substitute a specific pattern, please refer to Usage::Operations.
GFZ CHAMP Filenames¶
A GFZ internal filename that was defined in the era of the CHAMP satellite mission (2000).
When called with a parameter interval
the datetime will be rounded to the seconds given.
obj, _ := dateconv.NewConversion("2022-01-01 00:17:00", "datetime", "")
obj.Champ("15M")
// 21906az0900
ISO Datetimes¶
UNIX Seconds¶
Converts to seconds since Jan 1, 1970 UTC.