function
Library: Date and time functions (OMDATE)
Include: omdate.xin |
Returns: Returns the specified date in standard ARPA/Internet RFC-822 format. |
define string function ymdhms-to-arpadate value string ymdhms
Argument definitions
YYYYMMDDhhmmss+ZHZM
format. ymdhms-to-arpadate
takes a date/time in YYYYMMDDhhmmss+ZHZM
format and returns it in
standard ARPA/Internet RFC-822 format.
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
To use ymdhms-to-arpadate
, you must include the following code near the top of your program:
include "omdate.xin"