Ignore:
Timestamp:
11/22/11 23:39:34 (13 years ago)
Author:
tbretz
Message:
Implemented Time::UnixDate and use this instead of UnixTime when writing TSTART and TSTOP in FITS header -- units there are days not seconds.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Time.cc

    r11440 r12618  
    186186// --------------------------------------------------------------------------
    187187//
     188// @returns days since 1970/1/1
     189//
     190double Time::UnixDate() const
     191{
     192    return (date().modjulian_day()-40587) + SecondsOfDay()/(24*60*60);
     193}
     194
     195// --------------------------------------------------------------------------
     196//
    188197// @returns seconds since 1970/1/1
    189198//
Note: See TracChangeset for help on using the changeset viewer.