Changeset 11439 for trunk/FACT++/src
- Timestamp:
- 07/18/11 14:40:03 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Time.cc
r11393 r11439 224 224 // -------------------------------------------------------------------------- 225 225 // 226 //! @returns 227 //! a human readable string which complies with ISO 8601, in the 228 //! "CCYY-MM-DDThh:mm:ss.f" 229 // 230 string Time::Iso() const 231 { 232 stringstream out; 233 out << Time::fmt("%Y-%m-%dT%H:%M:%S%F") << *this; 234 return out.str(); 235 } 236 237 // -------------------------------------------------------------------------- 238 // 226 239 //! Sets the time of the Time object to a time corresponding to 227 240 //! the one given as argument. It is evaluated according to the given -
trunk/FACT++/src/Time.h
r11393 r11439 72 72 void SetFromStr(const std::string &str, const char *fmt="%Y-%m-%d %H:%M:%S"); 73 73 74 std::string Iso() const; 75 74 76 // Conversion to and from MJD 75 77 void Mjd(double mjd);
Note:
See TracChangeset
for help on using the changeset viewer.