CDate::ECompare Compare(const CDate_std &date) const
Indicate how *this relates to another date.
void SetToTime(const CTime &time, CDate::EPrecision prec=CDate::ePrecision_second)
CTime AsCTime(CTime::ETimeZone tz=CTime::eLocal) const
void GetDate(string *label, const string &format) const
Append a custom string representation of the date to the label.
ECompare Compare(const CDate &date) const
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)
CTime AsCTime(CTime::ETimeZone tz=CTime::eLocal) const
EPrecision
for conversion from CTime
ECompare
How *this relates to another date.
@ eCompare_same
They're equivalent.
@ eCompare_unknown
Comparison is impossible.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ETimeZone
Which initial value to use for timezone.
string AsString(const CTimeFormat &format=kEmptyStr, TSeconds out_tz=eCurrentTimeZone) const
Transform time to string.
@ eEmpty
Use "empty" time.
static const char label[]
bool IsStd(void) const
Check if variant Std is selected.
TStd & SetStd(void)
Select the variant.
const TStr & GetStr(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
TStr & SetStr(void)
Select the variant.
const TStd & GetStd(void) const
Get the variant data.
bool IsStr(void) const
Check if variant Str is selected.
@ e_not_set
No variant selected.
@ e_Str
for those unparsed dates
@ e_Std
use this if you can