- n = date:days90()
- date:setDays90(n)
SYNOPSIS
DESCRIPTION
Older Teratronik systems often handle dates as an offset from 1990, Jan. 1st. These functions are used to
set and get this date format.
RETURN VALUE
date:days90() returns the number of days since 1990-01-01.
ERRORS
Raises an error if date is not a date instance.
EXAMPLE
>
>
>
d = clock.newDate()
d.setDays90(1)
print(d)
1990-01-02
>
>
d = clock.currentDate()
print(d, d:days90())
2009-08-06 7157