vlibDate

vLIB logo

6.22. julianDate()

Function Description
  julianDate (string timestamp)

Returns number of days since (and including) 1st January of the year in the given timestamp.

The timestamp parameter is a vlibDate timestamp. For more information, please see the IMPORTANT section.

Example

   echo 'today is day number '.$date->julianDate($date->now()).' of the year';