bigframes.pandas.api.typing.DatetimeMethods#

classbigframes.pandas.api.typing.DatetimeMethods(data:Series)[source]#

Accessor object for datetime-like properties of the Series values.

Attributes

date

Returns a Series with the date part of Timestamps without time and timezone information.

day

The day of the datetime.

day_of_week

The day of the week with Monday=0, Sunday=6.

day_of_year

The ordinal day of the year.

dayofweek

The day of the week with Monday=0, Sunday=6.

dayofyear

The ordinal day of the year.

days

The numebr of days for each element

hour

The hours of the datetime.

microseconds

Number of microseconds (>= 0 and less than 1 second) for each element.

minute

The minutes of the datetime.

month

The month as January=1, December=12.

quarter

The quarter of the date.

second

The seconds of the datetime.

seconds

Number of seconds (>= 0 and less than 1 day) for each element.

time

Returns a Series with the time part of the Timestamps.

tz

Return the timezone.

unit

Returns the unit of time precision.

weekday

The day of the week with Monday=0, Sunday=6.

year

The year of the datetime.

Methods

__init__(data)

day_name()

Return the day names in english.

floor(freq)

Perform floor operation on the data to the specified freq.

isocalendar()

Calculate year, week, and day according to the ISO 8601 standard.

normalize()

Convert times to midnight.

strftime(date_format)

Convert to string Series using specified date_format.

total_seconds()

Return total duration of each element expressed in seconds.

On this page

This Page