pyarrow.timestamp¶
-
pyarrow.
timestamp
(unit, tz=None)¶ Create instance of timestamp type with resolution and optional time zone.
- Parameters
unit (str) – one of ‘s’ [second], ‘ms’ [millisecond], ‘us’ [microsecond], or ‘ns’ [nanosecond]
tz (str, default None) – Time zone name. None indicates time zone naive
Examples
>>> import pyarrow as pa >>> pa.timestamp('us') TimestampType(timestamp[us]) >>> pa.timestamp('s', tz='America/New_York') TimestampType(timestamp[s, tz=America/New_York]) >>> pa.timestamp('s', tz='+07:30') TimestampType(timestamp[s, tz=+07:30])
- Returns
timestamp_type (TimestampType)