Skip to main contentSkip to search
Powered by Zoomin Software. For more details please contactZoomin
Progress DocumentationProgress Documentation
Progress Documentation
  • Home
  • Home
  • EnglishČeštinaDeutsch (Germany)Español (Spain)Français (France)Italiano (Italy)Português (Brasil)日本語Русский (Russia)中文 (简体) (China)中文 (繁體, 台灣) (Taiwan)ar-AR
  • Login

ABL Data Types Addenda

Related ABL functions

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
Table of Contents
  • Introduction
    • Data types
    • Data type terminology
  • INT64 data type
    • Display Format
    • Related ABL functions
    • INT64 in arithmetic and comparison operations
      • Subtract DATETIME values
      • Mixed INTEGER and INT64 expressions
    • Pass INT64 variables as parameters
    • Determine when to use INT64 versus INTEGER
    • How to specify not to use INT64
  • Large object data types
    • Binary large objects
      • What you can do with BLOB values
      • Restrictions
    • Character large objects
      • What you can do with CLOB values
      • Restrictions
      • CLOB code pages
    • LONGCHAR data type
      • What you can do with LONGCHAR values
      • Restrictions
      • LONGCHAR code pages
  • Use large objects in ABL
    • Copy large objects
      • Convert code pages for CLOB and LONGCHAR values
    • Delete large objects
    • Dump and load large objects
      • Dump large objects
      • Dump all data except large objects
      • Load large objects
    • UNDO subtransactions that contain large object fields
    • Pass LONGCHAR variables as parameters
    • Modify BLOB data
    • Use BLOB values and image files
    • Use BLOB values and word processor files
    • Create a CLOB from a file
  • DATETIME and DATETIME-TZ data types
    • Related ABL functions
    • SESSION handle attributes for DATETIME and DATETIME-TZ data types
      • Precedence of default time zone sources for ABL time date functions
    • DATETIME and DATETIME-TZ literals
    • Compare date and datetime values
    • Display formats
      • Display DATETIME data based on display format
      • Display DATETIME-TZ data based on display format
    • DATETIME and DATETIME-TZ limits
    • Datetime arithmetic
      • Add and subtract basic datetime values
      • Add and subtract days plus milliseconds with a datetime value
      • Add, subtract, and obtain specific time intervals
    • Pass DATETIME and DATETIME-TZ as parameters
    • Dump and load DATETIME and DATETIME-TZ fields
  • Arrays
    • Arrays as parameters
    • Pass indeterminate arrays as parameters
    • Deep copy arrays
Table of Contents

Related ABL functions

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
  • Last Updated: January 16, 2024
  • 1 minute read
    • OpenEdge
    • Version 12.8
    • Documentation

Related ABL functions

You can use the DATETIME and DATETIME-TZ functions to create DATETIME and DATETIME-TZ variables and fields:

  • DATETIME — Creates a DATETIME from date and time values or from a character string. The following example uses the DATETIME function:
DEF VAR my-datetime as DATETIME.

my-datetime = DATETIME(TODAY, MTIME).

/* The statement above is equivalent to "my-datetime = NOW". */
  • DATETIME-TZ — Creates a DATETIME-TZ from date, time, and time zone values or from a character string. The following example uses the DATETIME-TZ function:
DEF VAR my-datetime-tz as DATETIME-TZ.

my-datetime-tz = DATETIME-TZ(TODAY, MTIME, TIMEZONE).

/* The statement above is equivalent to "my-datetime-tz = NOW". */

The ABL functions summarized in the following table support the DATETIME and DATETIME-TZ data types. For details on each of these functions, see ABL Reference.

Table 1. ABL functions related to DATETIME and DATETIME-TZ
Function Description
ADD-INTERVAL Adds or subtracts a specified unit of time (days, months, seconds, etc.) to/from a DATETIME or DATETIME-TZ value. This function takes the date, time, and time zone information into account. You can also use this function with a DATE.
DATE Returns the date part of DATETIME or DATETIME-TZ.
DAY Returns the day of the month of the date part of the DATETIME or DATETIME-TZ value.
INTERVAL1 Returns an integer that represents an interval between two date/times, expressed in interval-units (days, months, seconds, etc.). This function takes the date, time, and time zone information into account. You can also use this function with a DATE.
ISO-DATE1 Returns the character representation of a DATE, DATETIME or DATETIME-TZ that conforms to the ISO 8601 standard for date/time representations - formats are equivalent to the XML Schema date and dateTime formats.
MONTH Returns an integer value representing the month of the date part of the DATE, DATETIME, or DATETIME-TZ value.
MTIME1 Returns an integer representing the time part of a DATETIME or DATETIME-TZ in milliseconds. With no arguments, MTIME returns the number of milliseconds since midnight.
NOW1 Returns the current system date, time, and time zone as a DATETIME-TZ. If assigned to a DATETIME, NOW does not include the time zone.
STRING Converts a value of any data type into a character value.
TIMEZONE1 Returns an integer representing the time zone of a DATETIME-TZ in minutes. With no arguments, TIMEZONE returns the current time zone of the session.
WEEKDAY Returns the weekday of the date part of the DATETIME or DATETIME-TZ value.
YEAR Returns the year of the date part of the DATETIME or DATETIME-TZ value.
1 This ABL function is new to OpenEdge Release 10.
TitleResults for “How to create a CRG?”Also Available inAlert