otp.today#
- today(timezone=None)#
Returns the current date in the specified
timezone.- Parameters:
timezone (str |
Operation) –The timezone name to use. Special value
localcan be used to use local timezone name.By default the timezone of the query is used.
- Return type:
Examples
>>> data = otp.Tick(A=1) >>> data['TODAY'] = otp.today() >>> otp.run(data) Time A TODAY 0 2003-12-01 1 2026-09-25
See also
TODAY OneTick functionCURRENT_DATE/CURDATE OneTick function