otp.date#
- class date(first_arg, month=None, day=None)#
Bases:
onetick.py.types.datetime
Class
date
is used for representing date in onetick-py. It can be used both when specifying start and end time for queries and in column operations withonetick.py.Source
.- Parameters
first_arg (int, str, otp.datetime, pandas.Timestamp, datetime.datetime, datetime.date) – If month and day arguments are specified, first argument will be considered as year. Otherwise, first argument will be converted to otp.date.
month (int) – Number between 1 and 12.
day (int) – Number between 1 and 31.
Examples