Public methods

date

const char* date (IccClock::DateFormat format = IccClock::defaultFormat,
                  char dateSeparator = '\0')

format
An enumeration, defined in IccClock class, that indicates the format of the date. The default is to use the installation default, the value set when the CICS® region is initialized.
dateSeparator
The character that separates the different fields of the date The default is no separation character.

Returns the date, as a character string.

Conditions

INVREQ

dayOfMonth

unsigned long dayOfMonth()

Returns the day of the month in the range 1 to 31.

Conditions

INVREQ

dayOfWeek

IccClock::DayOfWeek dayOfWeek()

Returns an enumeration, defined in IccClock class, that indicates the day of the week.

Conditions

INVREQ

daysSince1900

unsigned long daysSince1900()

Returns the number of days that have elapsed since the first day of 1900.

Conditions

INVREQ

hours

virtual unsigned long hours() const

Returns the hours component of the time.

milliSeconds

long double milliSeconds()

Returns the number of milliseconds that have elapsed since the first day of 1900.

minutes

virtual unsigned long minutes() const

Returns the minutes component of the time.

monthOfYear

IccClock::MonthOfYear monthOfYear()

Returns an enumeration, defined in IccClock class, that indicates the month of the year.

Conditions

INVREQ

operator=

IccAbsTime& operator=(const IccAbsTime& absTime)

Assigns one IccAbsTime object to another.

packedDecimal

const char* packedDecimal() const

Returns the time as an 8-byte packed decimal string that expresses the number of milliseconds that have elapsed since the beginning of the year 1900.

seconds

virtual unsigned long seconds() const

Returns the seconds component of the time.

time

const char* time(char timeSeparator = '\0')

timeSeparator
The character that delimits the time fields. The default is no time separation character.

Returns the time as a text string.

Conditions

INVREQ

timeInHours

unsigned long timeInHours()

Returns the number of hours that have elapsed since the day began.

timeInMinutes

unsigned long timeInMinutes()

Returns the number of minutes that have elapsed since the day began.

timeInSeconds

unsigned long timeInSeconds()

Returns the number of seconds that have elapsed since the day began.

year

unsigned long year()

Returns the year as a 4-digit integer, e.g. 1996.

Conditions

INVREQ

[[ Contents Previous Page | Next Page Index ]]