You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
now=datetime.datetime.now@xl.register()defTODAY() ->func_xltypes.XlDateTime:
"""Returns the serial number of the current date. https://support.office.com/en-us/article/ today-function-5eb3078d-a82c-4736-8930-2f51a028fdd9 """returnnow()
Needs to be
now=datetime.datetime.now@xl.register()defTODAY() ->func_xltypes.XlNumber:
"""Returns the serial number of the current date. https://support.office.com/en-us/article/ today-function-5eb3078d-a82c-4736-8930-2f51a028fdd9 """date_and_time=now()
date=date_and_time.replace(
hour=0, minute=0, second=0, microsecond=0)
returnutils.datetime_to_number(date)
The text was updated successfully, but these errors were encountered:
I would advise you strongly against that. If you return integers for dates that you need to capture somewhere, somehow that the cell is to be formatted as a date. We might need an xlcalculator Date/Time type that knows how to convert itself to a number if needed, but I thought we had that already.
Currently;
Needs to be
The text was updated successfully, but these errors were encountered: