[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

HasDate

mixes in with Object

HasDate



Operations

Get list of all operations

Init
Timestamp


Attributes

Get list of all attributes

DateCreated
DateModified
TimeCreated
TimeModified


Fields

Field Type
HasDate: dateCreated: Signed
timeCreated: Unsigned
dateModified: Signed
timeModified: Unsigned


Instance template

Class HasDate cannot be instantiated.


Class definition


Define Class HasDate;
    // mix this in for objects for which you want to act like you have an updateable date
    mixes in with Object;

    field dateCreated:      Signed, getter, setter;     
        // in UT (universal time)
    field timeCreated:      Unsigned, getter, setter;   
        // in UT
    field dateModified:     Signed, getter, setter;     
        // in UT
    field timeModified:     Unsigned, getter, setter;   
        // in UT

    attribute DateCreated: Signed;
        // get/set the creation date in UT
    attribute TimeCreated: Unsigned;
        // get/set the creation time in UT
    attribute DateModified: Signed;
        // get/set the modified date in UT
    attribute TimeModified: Unsigned;
        // get/set the modified time in UT

    operation Timestamp(), noFail;
        // call to set the time to now

    overrides Init;
end class;