vtools.data.vtime

Basic ops for creating, testing and manipulating times and time intervals. This module contains factory and helper functions for working with times and time intervals.

For time intervals (or deltas), VTools uses classes that are compatible with the “freq” argument of

requires a time and time interval system that is consistent (e.g. time+n*interval makes sense) and that can be applied to both calendar dependent and calendar-independent intervals. Because this requirement is not met by any one implementation it is recommended that you always use the factory functions in this module for creating intervals or testing whether an interval is valid.

Functions

days(d)

Create a time interval representing d days

dst_to_standard_naive(ts[, dst_zone, ...])

Convert timezone-unaware series from a local (with daylight) time to standard time This would be useful, say, for converting a series that is PDT during summer to one that is not.

hours(h)

Create a time interval representing h hours

minutes(m)

Create a time interval representing m minutes

months(m)

Create a time interval representing m months

seconds(s)

Create a time interval representing s seconds

years(y)

Create a time interval representing y years