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

ymdhms-adjust-time-zone

 
 

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

Returns the adjusted date/time in "YYYYMMDDhhmmss+ZHZM" format.


Declaration

  define stream function ymdhms-adjust-time-zone value stream ymdhms
                                           to-be value stream new-zone


Purpose

This function takes a date/time and a time zone, returning the date/time adjusted to the given time zone. The returned date/time is also in the "YYYYMMDDhhmmss+ZHZM" format.

Arguments:

Example:

  include "omdate.xin"
  process
    local stream new-time
    set new-time to ymdhms-adjust-time-zone "19980416154929+0500" to-be "+0600"
    output "Adjusted time with new time zone offset = " || new-time || "%n"
  ; Result of this program:
  ;   Adjusted time with new time zone offset = 19980416164929+0600

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

Copyright © Stilo Corporation, 1988-2005.