Time library

The Time sample library defines some data types expressed in the Xc++ language which can be used to represent dates and times.


namespace dt
{
    $enum+ class TMonth
    {
        Jan,
        Feb,
        Mar,
        Apr,
        May,
        Jun,
        Jul,
        Aug,
        Sep,
        Oct,
        Nov,
        Dec
    };

    $model+ TDate
    {
        int32 Year;
        TMonth Month;   // 1-12
        int32 Day;      // 1-31
    };

    $model+ TTime
    {
        int32 Hour;     // 0-23
        int32 Minute;   // 0-59
        int32 Second;   // 0-59
    };

    $model+ TDateTime
    {
        TDate Date;
        TTime Time;
    };
}

Files

Time