swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

arpadate-to-ymdhms

 
 

Library: General, Date and time functions (OMDATE)
Include: omdate.xin
Return type: String
Returns: 

Returns the specified date in "YYYYMMDDhhmmss+ZHZM" format.


Declaration

  define stream function arpadate-to-ymdhms value stream arpadate


Purpose

This function takes a date/time in standard ARPA/Internet RFC-822 format and returns it in "YYYYMMDDhhmmss+ZHZM" format. Considerable flexibility is allowed by RFC-822, and additionally, this function allows further laxity in the ARPA date/time format:

Argument:

Example:

  ; Takes ARPA/Internet RFC-822 date format and returns it in "YYYYMMDDhhmmss+ZHZM" format. 
    include "omdate.xin"
    process
      local stream my-date  ; YYYYMMDDhhmmss+ZHZM format date
      local stream input-arpadate initial {"20 Feb 01 21:38:23"}
      set my-date to arpadate-to-ymdhms input-arpadate
      output "input-arpadate = "
         || input-arpadate
         || "%n"
         || "my-date = "
         || my-date
         || "%n"
  ; Result of this code:
  ;    input-arpadate = 20 Feb 01 21:38:23
  ;    my-date = 20010220213823+0000

        Other Library Functions
   add-to-ymdhms
   arpadate-to-ymdhms
   format-ymdhms
   now-as-ymdhms
   round-down-ymdhms
   round-up-ymdhms
   ymdhms-adjust-time-zone
   ymdhms-day-difference
   ymdhms-julian-day-count
   ymdhms-month-difference
   ymdhms-second-difference
   ymdhms-to-arpadate
   ymd-weekday
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:57 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.