TS_DateTimeFromVariant

 (Available in 01 TS COM - TS_COM_DateTimeFromVariant)

Purpose

Place holder for COM date/time variants

Syntax

oDateTimeFromVariant:=TS_DateTimeFromVariant{ [oOwner][,[dDate|nDate] ] }

Arguments

ouOwner
Optional owner object
undDate
Optional date, NIL, REAL8 or DATE

Access methods

DayOfCalendarWeek - Get the 'DayOfCalendarWeek' value
WeekOfCalendarYear - Get the 'WeekOfCalendarYear' value
Year - Get the year(s) value
Month - Get the month(s) value
DayOfMonth - Get the day of the month value
DayOfWeek - Get the day of the week value
Hour - Get the hour(s) value
Minute - Get the minute(s) value
Second - Get the second(s) value
Millisecond - Get the millisecond(s) value
IsValidObject - Test if the object is 'Valid'
DateVal - Get the date
TimeString - Get the time as string
TimeVal - Get the time specified in seconds
DateChar - Get the date as a string like DToC()
DateString - Get the date as a string like DToS()
AsReal8 - Get the date+time as a float

Assign methods

DateVal - Set the date
TimeString - Set the time as string
TimeVal - Set the time specified in seconds
DateChar - Set the date as a string like DToC()
DateString - Set the date as a string like DToS()
AsReal8 - Set the date+time as a float

Methods

TSTraceInfo -
Destroy - CALLBACK: It is adviced to use 'oObject:Axit()'
INIT - Create a 'TS_DateTimeFromVariant' instance
NEW - CALLBACK: New ( OnInited event )

Inherits from

TS_Root1

Source

CLASS TS_DateTimeFromVariant INHERIT TS_Root1
   DECLARE ACCESS AsReal8
   DECLARE ACCESS DateChar
   DECLARE ACCESS DateString
   DECLARE ACCESS DateVal
   DECLARE ACCESS DayOfCalendarWeek
   DECLARE ACCESS DayOfMonth
   DECLARE ACCESS DayOfWeek
   DECLARE ACCESS Hour
   DECLARE ACCESS Millisecond
   DECLARE ACCESS Minute
   DECLARE ACCESS Month
   DECLARE ACCESS Second
   DECLARE ACCESS TimeString
   DECLARE ACCESS TimeVal
   DECLARE ACCESS WeekOfCalendarYear
   DECLARE ACCESS Year
   DECLARE ASSIGN AsReal8
   DECLARE ASSIGN DateChar
   DECLARE ASSIGN DateString
   DECLARE ASSIGN DateVal
   DECLARE ASSIGN TimeString
   DECLARE ASSIGN TimeVal