| Description | Time management |
| Header file | LTime.h |
| Author | Camil Demetrescu, Andrea Ribichini |
| Created | Dec 19, 2001 |
| Last updated | Sep 25, 2003 |
The component LTime provides functions for time access.
Constants |
|
LTime_ID |
Types |
|
struct {
ui2 mYear;
ui1 mMonth;
ui1 mDay;
ui1 mHour;
ui1 mMin;
ui1 mSec;
ui2 mMsec;
} LTime
|
| Function | Arguments | Description | Returns | Throws |
| GetUserTime | - | Returns process time (note for the Win32 version: on Win9x systems, this function returns the number of seconds since the process was started). | f8 | - |
|
GetCalendarTime
|
- | Returns an LTime struct set to the current time. |
LTime |
- |
|
Compare
|
LTime t1 | Compares t1 and t2. If t1<t2 returns -1. If t1>t2 returns 1. If t1=t2 returns 0. |
i1 |
- |
| LTime t2 | ||||
| GetYear | LTime t | Returns t.mYear. | ui2 | - |
| GetMonth | LTime t | Returns t.mMonth. | ui1 | - |
| GetDay | LTime t | Returns t.mDay. | ui1 | - |
| GetHour | LTime t | Returns t.mHour. | ui1 | - |
| GetMin | LTime t | Returns t.mMin. | ui1 | - |
| GetSec | LTime t | Returns t.mSec. | ui1 | - |
| GetMsec | LTime t | Returns t.mMsec. | ui2 | - |