pyarrow.timestamp

pyarrow.timestamp(unit, tz=None)

Create instance of timestamp type with resolution and optional time zone

Parameters:
  • unit (string) – one of ‘s’ [second], ‘ms’ [millisecond], ‘us’ [microsecond], or ‘ns’ [nanosecond]
  • tz (string, default None) – Time zone name. None indicates time zone naive

Examples

t1 = pa.timestamp('us')
t2 = pa.timestamp('s', tz='America/New_York')
Returns:timestamp_type (TimestampType)