LTime

Description Time management
Header file LTime.h
Author Camil Demetrescu, Andrea Ribichini
Created Dec 19, 2001
Last updated Sep 25, 2003

 

Contents


Introduction

The component LTime provides functions for time access.


Interface

Constants

LTime_ID

Types

struct {
    ui2 mYear;
    ui1 mMonth;
    ui1 mDay;
    ui1 mHour;
    ui1 mMin;
    ui1 mSec;
    ui2 mMsec;
} LTime

Functions

f8    LTime_GetUserTime     ()      
LTime LTime_GetCalendarTime ()
i1    LTime_Compare         (LTime t1, LTime t2)
ui2   LTime_GetYear         (LTime t) 
ui1   LTime_GetMonth        (LTime t) 
ui1   LTime_GetDay          (LTime t) 
ui1   LTime_GetHour         (LTime t) 
ui1   LTime_GetMin          (LTime t)
ui1   LTime_GetSec          (LTime t) 
ui2   LTime_GetMsec         (LTime t)


API Reference

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 -


Revision history