Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
BASCOM AVR, help reference (2007).PDF
Скачиваний:
305
Добавлен:
12.08.2013
Размер:
17.02 Mб
Скачать

© MCS Electronics, 1995-2007

DATE TIME

EUROTIMEDATE

The CONFIG CLOCK statement for using the asynchrony timer of the 8535, M163, M103 or M128 (and others) allows you to use a software based clock. SeeTIME$ and DATE$.

By default the date format is in MM/DD/YY.

By specifying:

$LIB "EURODATETIME.LBX"

The DATE$ will work in European format : DD-MM-YY

Note that the eurotimedate library should not be used anymore. It is replaced by the DATETIME library which offers many more features.

DATETIME

The DateTime library is written by Josef Franz Vögel. It extends the clock routines with date and time calculation.

The following functions are available:

DayOfWeekReturns the day of the week DayOfYear Returns the day of the year SecOfDay Returns the second of the day

SecElapsed Returns the elapsed Seconds to a former assigned time-stamp

SysDay

 

Returns a number, which represents the System Day

 

 

 

SysSec

Returns a Number, which represents the System Second

SysSecElap Returns the elapsed Seconds to a earlier assigned system-time-stamp sed

Time

 

Returns a time-value (String or 3 Byte for Second, Minute and Hour)

 

 

 

depending of the Type of the Target

 

 

 

 

Date

Returns a date-value (String or 3 Bytes for Day, Month and Year) depending of

 

 

the Type of the Target

 

 

 

 

 

 

 

 

Date and time not to be confused with Date$ and Time$ !

page -757-