Datetime Intrinsic Functions (PRIM_LIBI.IDateTimeIntrinsics)

Datetime intrinsic functions

Ancestors - None

Details

Container for all date time intrinsic functions

Methods

NameDescription
AsCustomDisplayStringReturns the date in a user defined format
Result, DateFormat, TimeFormat
AsDisplayStringConvert the variable to a formatted string
Result, Format
AsDurationConvert to an ISO standard duration
Result, Starting
AsGregorianDayReturns the variable in Gregorian day format
Result
AsGregorianMonthReturns the variable in Gregorian month format
Result
AsGregorianMonthDayReturns the variable in Gregorian month day format
Result
AsGregorianYearReturns the variable in Gregorian year format
Result
AsGregorianYearMonthReturns the variable in Gregorian year month format
Result
AsLocalizedDateTimeReturn the variable adjust for locale
Result
AsNumberReturn the variable as a number
Result, Format
AsSecondsReturn the variable as the number since midnight
Result
AsStringReturn the variable as a string
Result
AsUniversalDateTimeReturn the variable as a universal datetime
Result
AsValueReturn the variable as a value if SQLNull
Result, Default
DateReturn the date portion of the datetime
Result
FractionalSecondsReturn the partial second portion of the time
Result
IsNotSqlNullTest if the variable is not SQLNull
Result
IsNullTest if the variable is a LANSA null
Result
IsSqlNullTest if the variable is SQLNull
Result
MaxReturns the latest datetime
Result, DateTime1, DateTime2, DateTime3, DateTime4, DateTime5, DateTime6, DateTime7, DateTime8, DateTime9
MinReturns the earliest datetime
Result, DateTime1, DateTime2, DateTime3, DateTime4, DateTime5, DateTime6, DateTime7, DateTime8, DateTime9
NowReturn the current datetime
Result
TimeReturn the time portion of the datetime
Result

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2