Home Contents | # date:days90 | Date/Time | Core4 Lua Commands

## SYNOPSIS

1. n = date:days90()
2. date:setDays90(n)

## 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

## SEE ALSO

clock.currentDate, clock.newDate, date(), date:addDays, date:addMonths, date:addYears, date:day, date:dayOfWeek, date:dayOfYear, date:daysInMonth, date:daysInYear, date:daysTo, date:format, date:isNull, date:isValid, date:month, date:set, date:weekNumber, date:year, tostring(date)