swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   ymdhms-julian-day-count   Available in:
Professional
Enterprise

Library: omdate - date and time functions
Include: omdate.xin
Return type: Integer
Returns:       

Returns the Julian day of the specified date, with 1 January being day number 1 (one).


Declaration

  define integer function ymdhms-julian-day-count value stream ymd


Purpose

This function takes a date in "YYYYMMDD" format and returns the "Julian day" -- the number of the day within the year, with 1 January being day number 1 (one). The argument for this function can be longer, but the part beyond the date is ignored.

Argument:


  include "omdate.xin"
  process
     output "Julian day number of today = "
        || "d" % (ymdhms-julian-day-count now-as-ymdhms)
        || "%n"
  ; Result of this code, run on Feb. 19, 2001:
  ;    Julian day number of today = 50

        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 ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:49 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.