Go's time package in TypeScript
- Add
- AddDate
- After
- Before
- Date
- Equal
- Format
- Parse
- ParseDuration
- ParseInLocation
- Round
- Sub
- Truncate
- Unix
- UnixMicro
- UnixMilli
Help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from Go strings documentation, Go strings source, Go strings examples source, GopherJS.
- Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.
We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.
Upstream Surface Inventory 16/59 shipped • 2 next 27%
Namespace-level inventory for Go 1.23: what we already ship, what we may still want,
and what we intentionally skip or keep.
time package
89%
shipped
16/18 shipped
2 next
41 explicit non-goals
Shipped (16)
Next
Time comparison has a clean plain-value contract.
Compare
Unix timestamp conversion has a clean plain-value contract.
UnixNano
Explicit non-goals (41)
-
AfterFuncTimer callbacks are side-effectful runtime scheduling APIs. -
AppendFormatMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
ClockMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
DayMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
FixedZoneMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
GobDecodeMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
GobEncodeMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
GoStringMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
HourMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
InMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
IsDSTMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
ISOWeekMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
IsZeroMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
LoadLocationTimezone database loading depends on host runtime state. -
LoadLocationFromTZDataTimezone database loading depends on host runtime state. -
LocalMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
LocationMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
MarshalBinaryMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
MarshalJSONMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
MarshalTextMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
MinuteMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
MonthMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
NanosecondMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
NewTickerMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
NewTimerMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
NowMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
SecondMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
SinceMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
SleepMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
StringMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
TickMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
UnmarshalBinaryMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
UnmarshalJSONMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
UnmarshalTextMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
UntilMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
UTCMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
WeekdayMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
YearMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
YearDayMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
ZoneMuch of Go time depends on locations, timers, and rich time values beyond JS plain values. -
ZoneBoundsMuch of Go time depends on locations, timers, and rich time values beyond JS plain values.