Skip to content

DateManager Class

The DateManager class prodives routines to handle dates and conversions.

The currently available formats are :

  • JJCNES_FRAC : dddd.ffff
  • JJCNES_SEC : dddd ssss.ffff
  • JJ2000_MSDAY : dddd mmmmmmmm
  • ESA_YEARDAY : yyyy-ddd hh.mm.ss.mmm
  • ISO8601 : yyyy/mm/dd hh:mm:ss.mmm
  • USA : mm/dd/yyyy hh:mm:ss.mmm
  • EUR : dd/mm/yyyy hh:mm:ss.mmm
  • GPS_SECONDS : wwww ssss.ffff
  • SECONDS : ssss.ssss
  • UNIX : ssss.ssss
  • UNIXMS : ssss.ssss
  • UNIXUS : ssss.ssss

Public Functions

from{ date format }
to{ date format }


Detailed Function Descriptions

from

from{ date format }

Return the given date in the PrestoPlot internal format. The given date will be converted from the specified input format. If the format is not specified, PrestoPlot will try to guess it, according to its configuration.

Parameters :

  • date : The string date to convert into internal PrestoPlot format.

  • format : (Optional) The input format (see DateManager). If not specified, PrestoPlot will try to guess it.

Return : A PrestoPlot internal date.

to

to{ date format }

Convert a PrestoPlot internal date to the specified format. See (see DateManager) for the format list.

Parameters :

  • date : A PrestoPlot internal date

  • format : The date format to convert the date to.