37 #ifndef OBJECTS_GENERAL_DATE_HPP
38 #define OBJECTS_GENERAL_DATE_HPP
64 CDate(
const CTime& time, EPrecision prec = ePrecision_second);
65 explicit CDate(time_t time, EPrecision prec = ePrecision_second);
69 void SetToTime(
const CTime& time, EPrecision prec = ePrecision_second);
87 void GetDate(
string*
label,
bool year_only =
false)
const;
116 void GetDate(
string*
label,
const string&
format)
const;
117 void GetDate(
string*
label,
const char*
format)
const;
StringStore is really a VisibleString.
CDate & operator=(const CDate &value)
CDate(const CDate &value)
void GetDate(string *label, bool year_only=false) const
Append a standardized string representation of the date to the label.
void SetToTime(const CTime &time, EPrecision prec=ePrecision_second)
EPrecision
for conversion from CTime
ECompare
How *this relates to another date.
@ eCompare_same
They're equivalent.
@ eCompare_after
*this comes second.
sequence::ECompare Compare(const CSeq_loc &loc1, const CSeq_loc &loc2, CScope *scope)
Returns the sequence::ECompare containment relationship between CSeq_locs.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ETimeZone
Which initial value to use for timezone.
#define NCBI_GENERAL_EXPORT
static const char label[]
const GenericPointer< typename T::ValueType > T2 value
Defines: CTimeFormat - storage class for time format.