ymdhms-to-arpadate

function

Library: Date and time functions (OMDATE)
Include: omdate.xin

Returns: the specified date in standard ARPA/Internet RFC-822 format


Declaration
define string function 
   ymdhms-to-arpadate value string ymdhms

Argument definitions

ymdhms
a date in YYYYMMDDhhmmss+ZHZM format.


Purpose

ymdhms-to-arpadate takes a date/time in YYYYMMDDhhmmss+ZHZM format and returns it in standard ARPA/Internet RFC-822 format.

Example

The following program uses ymdhms-to-arpadate to output the current date/time in ARPA/Internet RFC-822 format.

  include "omdate.xin"
  
  process
     output "Current date and time, in ARPA format = " 
         || ymdhms-to-arpadate now-as-ymdhms || "%n"
The output of this program might be
  Current date and time, in ARPA format = Thu, 31 Oct 2019 16:29:31 -0400

Usage Note

To use ymdhms-to-arpadate, you must include the following code near the top of your program:

  include "omdate.xin"