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

format-ymdhms

 
 

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

The specified date in the indicated format.


Declaration

  define stream function format-ymdhms value stream date-format
                             with-date value stream ymdhms


Purpose

This function takes a date/time in "YYYYMMDDhhmmss+ZHZM" format and returns it formatted as for the OmniMark date operator.

Arguments:

Example:

  ; Format the date with day and month written out 
    include "omdate.xin"
    process
       output format-ymdhms "Now == =W, =xD =n =xY, =h:=m:=s =a.m. =t%n"
       with-date now-as-ymdhms
  ; Result of this code run on Valentine's Day, 2001:
  ;    Now = Wednesday, 14 February 2001, 04:06:21 p.m. -0500

        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:45:14 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.