TML Messaging Suite  1.1.5
for Java
 All Classes Namespaces Functions Variables Groups Pages
Public Member Functions | Protected Member Functions | List of all members
com.tmlsidex.sidex.SDXDateTime Class Reference

Implementation of a DateTime type variant. More...

Inheritance diagram for com.tmlsidex.sidex.SDXDateTime:
com.tmlsidex.sidex.SDXBase

Public Member Functions

 SDXDateTime (String sValue) throws TmlSidexException
 construct a new SDXDateTime from a formatted string More...
 
 SDXDateTime (Date dValue) throws TmlSidexException
 construct a new SDXDateTime from a Date object More...
 
 SDXDateTime (long vHandle, boolean thisown) throws TmlSidexException
 constructs a new instance to access an existing low level handle More...
 
Date getValue () throws TmlSidexException
 get value as Date object More...
 
String toString ()
 get value as string More...
 
void setValue (String sValue) throws TmlSidexException
 set value as string More...
 
void setValue (Date dValue) throws TmlSidexException
 set value as date More...
 
boolean equals (Object obj)
 compare datetime value More...
 
- Public Member Functions inherited from com.tmlsidex.sidex.SDXBase
 SDXBase ()
 constructor More...
 
long getVhandle ()
 returns the SIDEX variant handle of this instance More...
 

Protected Member Functions

void finalize () throws Throwable
 destructor. More...
 
- Protected Member Functions inherited from com.tmlsidex.sidex.SDXBase
void finalize () throws Throwable
 destructor. More...
 

Detailed Description

Implementation of a DateTime type variant.

A SIDEX date time is formatted as string:
The value must be formatted according to the specification:
YYYY-MM-DD hh:mm:ss:ttt

YYYY year (0001-9999 / 0000 for undefined)
MM monst (01-12 / 00 for undefined)
DD day of month (01-31 / 00 for undefined)
hh hour (00-23)
mm minutes (00-59)
ss seconds (00-59)
ttt milliseseconds (000-999)
The date attributes may also be undefined. In that case year, month and day must be set to 0.