Public Member Functions
imagen::iDateTime Class Reference

Date/time information. More...

#include <iDateTime.h>

List of all members.

Public Member Functions

 iDateTime ()
 Contructor.
 iDateTime (const iDateTime &dt)
 Copy contructor.
void update ()
 Sets all data members to the current date/time.
void set (Iuint y, Iuint m, Iuint d, Iuint h, Iuint mn, Iuint s, Iuint ms)
 Sets all data members to the given date/time.
Iuint year () const
 Returns the year.
Iuint month () const
 Returns the month.
Iuint day () const
 Returns the day.
Iuint hour () const
 Returns the hour.
Iuint minute () const
 Returns the minute.
Iuint second () const
 Returns the second.
Iuint millisec () const
 Returns the millisecond.
void setYear (Iuint y)
 Sets the year.
void setMonth (Iuint m)
 Sets the month.
void setDay (Iuint d)
 Sets the day.
void setHour (Iuint h)
 Sets the hour.
void setMinute (Iuint m)
 Sets the minute.
void setSecond (Iuint s)
 Sets the second.
void setMillisec (Iuint ms)
 Sets the millisecond.
iDateTimeoperator= (const iDateTime &dt)

Detailed Description

Date/time information.

This class is used for storing date and time information.
You can manually set the date/time using the given accessor functions, or call update() to set all members to the current date/time.
The constructor calls update(), so the date/time will be accurate at the time a given iDateTime object is constructed.


Constructor & Destructor Documentation

Contructor.

Sets all data members to the current date/time.

See also:
update()
imagen::iDateTime::iDateTime ( const iDateTime dt) [inline]

Copy contructor.


Member Function Documentation

Sets all data members to the current date/time.

void imagen::iDateTime::set ( Iuint  y,
Iuint  m,
Iuint  d,
Iuint  h,
Iuint  mn,
Iuint  s,
Iuint  ms 
) [inline]

Sets all data members to the given date/time.

Parameters:
y: Year
m: Month
d: Day
h: Hour
mn: Minute
s: Second
ms: Millisecond
Iuint imagen::iDateTime::year ( ) const [inline]

Returns the year.

Iuint imagen::iDateTime::month ( ) const [inline]

Returns the month.

Iuint imagen::iDateTime::day ( ) const [inline]

Returns the day.

Iuint imagen::iDateTime::hour ( ) const [inline]

Returns the hour.

Iuint imagen::iDateTime::minute ( ) const [inline]

Returns the minute.

Iuint imagen::iDateTime::second ( ) const [inline]

Returns the second.

Iuint imagen::iDateTime::millisec ( ) const [inline]

Returns the millisecond.

void imagen::iDateTime::setYear ( Iuint  y) [inline]

Sets the year.

void imagen::iDateTime::setMonth ( Iuint  m) [inline]

Sets the month.

void imagen::iDateTime::setDay ( Iuint  d) [inline]

Sets the day.

void imagen::iDateTime::setHour ( Iuint  h) [inline]

Sets the hour.

void imagen::iDateTime::setMinute ( Iuint  m) [inline]

Sets the minute.

void imagen::iDateTime::setSecond ( Iuint  s) [inline]

Sets the second.

void imagen::iDateTime::setMillisec ( Iuint  ms) [inline]

Sets the millisecond.

iDateTime& imagen::iDateTime::operator= ( const iDateTime dt) [inline]

The documentation for this class was generated from the following file: