varwg.times.time_part

varwg.times.time_part(timestamps_or_datetimes, sub_format_str)[source]

Returns the “time_part” of a timestamp or datetimes. The time_part has to be convertible into an integer. This is useful to group values according to months, weeks and so on.