Namespace: OpenEdge.Core
Class 
TimeStamp
Parent classes:
Progress.Lang.Object

Inherits: Progress.Lang.Object

Copyright (c) 2013 by Progress Software Corporation. All rights reserved.
File:TimeStamp
Purpose:Primitive class for date, TimeStamp and TimeStamp-tz values
Author(s):pjudge
Created:Mon Nov 22 14:29:32 EST 2010
Notes:* Named 'TimeStamp' because of keyword/namespace conflicts with
ABL Primitive DATETIME. There's no built-in class for this.




Method Summary
Options Name Purpose
# LOGICAL Equals (Object)
# DATE ToABLDateFromISO (character) /** Converts an ISO date into an ABL DATE. The ISO-DATE() requires the session's date format to be YMD before performing the conversion; this method wraps that. @param character An ISO date @return datetime-tz The date value to convert. */
# DATETIME ToABLDateTimeFromISO (character) /** Converts an ISO date into an ABL DATETIME. The ISO-DATE() requires the session's date format to be YMD before performing the conversion; this method wraps that. @param character An ISO date @return datetime The date value to convert. */
# DATETIME-TZ ToABLDateTimeTzFromHttp (character) /** Converts an HTTP 'sane date' into an ABL DATETIME-TZ. The HTTP date is defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3 One of the following formats will be used: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format @param character An ISO date @return datetime-tz The date value to convert. */
# DATETIME-TZ ToABLDateTimeTzFromISO (character) /** Converts an ISO date into an ABL DATETIME-TZ. The ISO-DATE() requires the session's date format to be YMD before performing the conversion; this method wraps that. @param character An ISO date @return datetime-tz The date value to convert. */
# DATE ToDate ()
# DATETIME ToDateTime ()
# DATETIME-TZ ToDateTimeTz ()
# CHARACTER ToHttpDate ()
# CHARACTER ToHttpDateFromABL (datetime-tz) /** Converts an ABL date into an HTTP 'sane date', according to RFC 822, as defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3 One of the following formats will be used: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 @param character An ISO date @return datetime-tz The date value to convert. */
# CHARACTER ToISODate () /** Converts an ABL datetime into a correct ISO date. The ISO-DATE() function requires the session's date format to be YMD before performing the conversion; this method wraps that. @return character An ISO date. */
# CHARACTER ToISODateFromABL (date) /** Converts an ABL datetime into a correct ISO date. The ISO-DATE() function requires the session's date format to be YMD before performing the conversion; this method wraps that. @param date The date value to convert @return character An ISO date. */
# CHARACTER ToISODateFromABL (datetime) /** Converts an ABL datetime into a correct ISO date. The ISO-DATE() function requires the session's date format to be YMD before performing the conversion; this method wraps that. @param datetime The date value to convert @return character An ISO date. */
# CHARACTER ToISODateFromABL (datetime-tz) /** Converts an ABL datetime into a correct ISO date. The ISO-DATE() function requires the session's date format to be YMD before performing the conversion; this method wraps that. @param datetime-tz The date value to convert @return character An ISO date. */
# INTEGER ToTime ()

Constructor Summary
Options Name Purpose
# TimeStamp ()
# TimeStamp (character)
# TimeStamp (date)
# TimeStamp (datetime)
# TimeStamp (datetime-tz)
# TimeStamp (integer)

Property Summary
Options Name Purpose
# CHARACTER Format


Method Detail
Top

PROTECTED LOGICAL Equals (Object)

Parameters:
p0 Progress.Lang.Object
Returns LOGICAL
Top

PROTECTED DATE ToABLDateFromISO (character)

Purpose: Converts an ISO date into an ABL DATE. The ISO-DATE()
requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Parameters:
pcValue CHARACTER
Returns DATE
datetime-tz The date value to convert.
Top

PROTECTED DATETIME ToABLDateTimeFromISO (character)

Purpose: Converts an ISO date into an ABL DATETIME. The ISO-DATE()
requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Parameters:
pcValue CHARACTER
Returns DATETIME
datetime The date value to convert.
Top

PROTECTED DATETIME-TZ ToABLDateTimeTzFromHttp (character)

Purpose: Converts an HTTP 'sane date' into an ABL DATETIME-TZ. The HTTP date is
defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
One of the following formats will be used:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
Parameters:
pcValue CHARACTER
Returns DATETIME-TZ
datetime-tz The date value to convert.
Top

PROTECTED DATETIME-TZ ToABLDateTimeTzFromISO (character)

Purpose: Converts an ISO date into an ABL DATETIME-TZ. The ISO-DATE()
requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Parameters:
pcValue CHARACTER
Returns DATETIME-TZ
datetime-tz The date value to convert.
Top

PROTECTED DATE ToDate ()

Returns DATE
Top

PROTECTED DATETIME ToDateTime ()

Returns DATETIME
Top

PROTECTED DATETIME-TZ ToDateTimeTz ()

Returns DATETIME-TZ
Top

PROTECTED CHARACTER ToHttpDate ()

Returns CHARACTER
Top

PROTECTED CHARACTER ToHttpDateFromABL (datetime-tz)

Purpose: Converts an ABL date into an HTTP 'sane date', according to RFC 822, as
defined at http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
One of the following formats will be used:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Parameters:
ptValue DATETIME-TZ
Returns CHARACTER
datetime-tz The date value to convert.
Top

PROTECTED CHARACTER ToISODate ()

Purpose: Converts an ABL datetime into a correct ISO date. The ISO-DATE()
function requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Returns CHARACTER
character An ISO date.
Top

PROTECTED CHARACTER ToISODateFromABL (date)

Purpose: Converts an ABL datetime into a correct ISO date. The ISO-DATE()
function requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Parameters:
ptValue DATE
Returns CHARACTER
character An ISO date.
Top

PROTECTED CHARACTER ToISODateFromABL (datetime)

Purpose: Converts an ABL datetime into a correct ISO date. The ISO-DATE()
function requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Parameters:
ptValue DATETIME
Returns CHARACTER
character An ISO date.
Top

PROTECTED CHARACTER ToISODateFromABL (datetime-tz)

Purpose: Converts an ABL datetime into a correct ISO date. The ISO-DATE()
function requires the session's date format to be YMD before
performing the conversion; this method wraps that.
Parameters:
ptValue DATETIME-TZ
Returns CHARACTER
character An ISO date.
Top

PROTECTED INTEGER ToTime ()

Returns INTEGER


Constructor Detail
Top

PROTECTED TimeStamp ()

Top

PROTECTED TimeStamp (character)

Parameters:
pcTimeStamp CHARACTER
Top

PROTECTED TimeStamp (date)

Parameters:
ptTimeStamp DATE
Top

PROTECTED TimeStamp (datetime)

Parameters:
ptTimeStamp DATETIME
Top

PROTECTED TimeStamp (datetime-tz)

Parameters:
ptTimeStamp DATETIME-TZ
Top

PROTECTED TimeStamp (integer)

Parameters:
piTimeStamp INTEGER


Property Detail
Top

PROTECTED CHARACTER Format

Returns CHARACTER


10.27.2015 12:36:29