timestamp

forge.tafunctionSince Forge API 1
Signaturepython
forge.ta.timestamp(year: int,month: int,day: int,hour: int = 0,minute: int = 0,second: int = 0,*,tz: str = 'UTC') -> int

Nanoseconds UTC of a local time in tz.

Parameters

NameTypeDefault
yearint
monthint
dayint
hourint0
minuteint0
secondint0
tzstr'UTC'

A local time a DST change skips does not exist and is refused; an ambiguous one (the hour a change repeats) takes the first occurrence, the engine clock's rule.