pyarrow.timestamp

pyarrow.timestamp(unit, tz=None)

Create instance of timestamp type with resolution and optional time zone.

Parameters:
unitstr

one of ‘s’ [second], ‘ms’ [millisecond], ‘us’ [microsecond], or ‘ns’ [nanosecond]

tzstr, default None

Time zone name. None indicates time zone naive

Returns:
timestamp_typeTimestampType

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])