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

Inherits: Progress.Lang.Object

Copyright (c) 2013, 2016 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)

Property Summary
Options Name Purpose
CHARACTER Format


Method Detail
Top

LOGICAL Equals (Object)

Parameters:
p0 Progress.Lang.Object
Returns LOGICAL
Top

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

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

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

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

DATE ToDate ()

Returns DATE
Top

DATETIME ToDateTime ()

Returns DATETIME
Top

DATETIME-TZ ToDateTimeTz ()

Returns DATETIME-TZ
Top

CHARACTER ToHttpDate ()

Returns CHARACTER
Top

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

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

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

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

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

INTEGER ToTime ()

Returns INTEGER


Constructor Detail
Top

TimeStamp ()

Top

TimeStamp (character)

Parameters:
pcTimeStamp CHARACTER
Top

TimeStamp (date)

Parameters:
ptTimeStamp DATE
Top

TimeStamp (datetime)

Parameters:
ptTimeStamp DATETIME
Top

TimeStamp (datetime-tz)

Parameters:
ptTimeStamp DATETIME-TZ


Property Detail
Top

CHARACTER Format

Returns CHARACTER


Copyright © 2017 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7