fFormat_Simple = (1 << 0),
149fFormat_Ncbi = (1 << 1),
154fMatch_Strict = (1 << 5),
159fMatch_ShortTime = (1 << 6),
160fMatch_ShortFormat = (1 << 7),
165fMatch_Weak = fMatch_ShortTime | fMatch_ShortFormat,
171fMatch_IgnoreSpaces = (1 << 8),
175fConf_UTC = (1 << 9),
181eNcbiSimple = fFormat_Simple,
182eNcbi = fFormat_Ncbi,
193eISO8601_YearMonth = 1,
195eISO8601_DateTimeMin = 3,
196eISO8601_DateTimeSec = 4,
197eISO8601_DateTimeFrac = 5
227 voidSetFormat(
const char* fmt, TFlags
flags= fDefault);
237 voidSetFormat(
const string& fmt, TFlags
flags= fDefault);
244 const string& GetString(
void)
const;
251TFlags GetFlags(
void)
const;
254 boolIsEmpty(
void)
const;
313eCurrentTimeZone = -1
363eTZPrecisionDefault =
eNone 370eDaylightDefault = eAdjustDaylight
383ETimeZone tz = eLocal,
384ETimeZonePrecision tzp = eTZPrecisionDefault);
396 explicit CTime(time_t
t, ETimeZonePrecision tzp = eTZPrecisionDefault);
408 CTime(
const structtm&
t, ETimeZonePrecision tzp = eTZPrecisionDefault);
433 CTime(
intyear,
intmonth,
intday,
434 inthour = 0,
intminute = 0,
intsecond = 0,
longnanosecond = 0,
435ETimeZone tz = eLocal,
436ETimeZonePrecision tzp = eTZPrecisionDefault);
450 CTime(
intyear,
intyearDayNumber,
451ETimeZone tz = eLocal,
452ETimeZonePrecision tzp = eTZPrecisionDefault);
473ETimeZone tz = eLocal,
474ETimeZonePrecision tzp = eTZPrecisionDefault);
495 CTime& operator= (
const string&
str);
504 CTime& SetTimeT(
consttime_t
t);
513time_t GetTimeT(
void)
const;
525 static voidGetCurrentTimeT(time_t* sec,
long* nanosec = 0);
537 CTime& SetTimeTM(
const structtm&
t);
543 structtm GetTimeTM(void)
const;
582 CTime& SetCurrent(
void);
585 CTime& Clear(
void);
650 static intMonthNameToNum(
const string& month);
662 static stringMonthNumToName(
intmonth, ENameFormat
format= eFull);
672 static intDayOfWeekNameToNum(
const string& day);
684 static stringDayOfWeekNumToName(
intday, ENameFormat
format= eFull);
703 TSecondsout_tz = eCurrentTimeZone)
const;
706 operator string(
void)
const;
717 intYear(
void)
const;
723 intMonth(
void)
const;
729 intDay(
void)
const;
735 intHour(
void)
const;
741 intMinute(
void)
const;
747 intSecond(
void)
const;
755 longMilliSecond(
void)
const;
763 longMicroSecond(
void)
const;
771 longNanoSecond(
void)
const;
789 voidSetYear(
intyear);
802 voidSetMonth(
intmonth);
814 voidSetDay(
intday);
822 voidSetHour(
inthour);
830 voidSetMinute(
intminute);
838 voidSetSecond(
intsecond);
846 voidSetMilliSecond(
longmillisecond);
854 voidSetMicroSecond(
longmicrosecond);
862 voidSetNanoSecond(
longnanosecond);
867 intYearDayNumber(
void)
const;
880 intYearWeekNumber(EDayOfWeek first_day_of_week = eSunday)
const;
888 intMonthWeekNumber(EDayOfWeek first_day_of_week = eSunday)
const;
894 intDayOfWeek(
void)
const;
899 intDaysInMonth(
void)
const;
906 CTime&
AddYear(
intyears = 1, EDaylight adl = eDaylightDefault);
934 CTime&
AddDay(
intdays = 1, EDaylight adl = eDaylightDefault);
945 CTime&
AddHour(
inthours = 1, EDaylight adl = eDaylightDefault);
956 CTime&
AddMinute(
intminutes = 1, EDaylight adl = eDaylightDefault);
1005EDaylight adl = eDaylightDefault);
1066 intDiffWholeDays(
const CTime&
t)
const;
1069 doubleDiffDay(
const CTime&
t)
const;
1072 doubleDiffHour(
const CTime&
t)
const;
1075 doubleDiffMinute(
const CTime&
t)
const;
1081 doubleDiffNanoSecond(
const CTime&
t)
const;
1092 boolIsEmpty (
void)
const;
1095 boolIsEmptyDate (
void)
const;
1098 boolIsLeap (
void)
const;
1104 boolIsLocalTime (
void)
const;
1107 boolIsUniversalTime(
void)
const;
1108 bool IsGmtTime(
void)
const{
returnIsUniversalTime(); };
1115 boolIsDST(
void)
const;
1138ETimeZone GetTimeZone(
void)
const;
1142ETimeZone SetTimeZone(ETimeZone
val);
1146ETimeZonePrecision GetTimeZonePrecision(
void)
const;
1149ETimeZonePrecision SetTimeZonePrecision(ETimeZonePrecision
val);
1152 CTimeGetLocalTime(
void)
const;
1155 CTimeGetUniversalTime(
void)
const;
1162 CTime& ToLocalTime(
void);
1165 CTime& ToUniversalTime(
void);
1175 TSecondsTimeZoneOffset(
void)
const;
1179 stringTimeZoneOffsetStr(
void);
1189 stringTimeZoneName(
void);
1200EErrAction err_action = eErr_Throw);
1204 CTime& x_SetTime(
consttime_t*
t= 0);
1207 CTime& x_SetTimeMTSafe(
consttime_t*
t= 0);
1211 voidx_AdjustDay(
void);
1220 CTime& x_AdjustTime(
const CTime& from,
boolshift_time =
true);
1224 CTime& x_AdjustTimeImmediately(
const CTime& from,
boolshift_time =
true);
1227 boolx_NeedAdjustTime(
void)
const;
1232 CTime& x_AddHour(
inthours = 1, EDaylight daylight = eDaylightDefault,
1233 boolshift_time =
true);
1236 #if defined(NCBI_COMPILER_WORKSHOP) && defined(__x86_64) && NCBI_COMPILER_VERSION < 590 1240 # define NCBI_TIME_BITFIELD(n) 1241 # define NCBI_TIME_EMPTY_BITFIELD 1243 # define NCBI_TIME_BITFIELD(n) : n 1244 # define NCBI_TIME_EMPTY_BITFIELD unsigned : 0; 1290:
CTime(eCurrent, tz)
1332 CTimeSpan(
longdays,
longhours,
longminutes,
longseconds,
1333 longnanoseconds = 0);
1342 explicit CTimeSpan(
longseconds,
longnanoseconds = 0);
1381 ESignGetSign(
void)
const;
1431 operator string(
void)
const;
1452fSS_Year = (1 << 0),
1453fSS_Month = (1 << 1),
1455fSS_Hour = (1 << 3),
1456fSS_Minute = (1 << 4),
1457fSS_Second = (1 << 5),
1458fSS_Millisecond = (1 << 6),
1459fSS_Microsecond = (1 << 7),
1460fSS_Nanosecond = (1 << 8),
1461fSS_Precision1 = (1 << 9),
1462fSS_Precision2 = (1 << 10),
1463fSS_Precision3 = (1 << 11),
1464fSS_Precision4 = (1 << 12),
1465fSS_Precision5 = (1 << 13),
1466fSS_Precision6 = (1 << 14),
1467fSS_Precision7 = (1 << 15),
1468fSS_Smart = (1 << 16),
1469fSS_PrecisionMask = 0x1FFFF,
1475fSS_Round = (1 << 20),
1476fSS_Trunc = (1 << 21),
1486fSS_NoSkipZero = (1 << 22),
1487fSS_SkipZero = (1 << 23),
1493fSS_Short = (1 << 24),
1494fSS_Full = (1 << 25),
1505eSSP_Year = fSS_Year,
1506eSSP_Month = fSS_Month,
1508eSSP_Hour = fSS_Hour,
1509eSSP_Minute = fSS_Minute,
1510eSSP_Second = fSS_Second,
1511eSSP_Millisecond = fSS_Millisecond,
1512eSSP_Microsecond = fSS_Microsecond,
1513eSSP_Nanosecond = fSS_Nanosecond,
1514eSSP_Precision1 = fSS_Precision1,
1515eSSP_Precision2 = fSS_Precision2,
1516eSSP_Precision3 = fSS_Precision3,
1517eSSP_Precision4 = fSS_Precision4,
1518eSSP_Precision5 = fSS_Precision5,
1519eSSP_Precision6 = fSS_Precision6,
1520eSSP_Precision7 = fSS_Precision7,
1521eSSP_Smart = fSS_Smart
1527eSSZ_NoSkipZero = fSS_NoSkipZero,
1528eSSZ_SkipZero = fSS_SkipZero
1535 stringAsSmartString(ESmartStringPrecision
precision,
1537ESmartStringZeroMode zero_mode = eSSZ_SkipZero)
const;
1552 stringAsSmartString(TSmartStringFlags
flags= 0)
const;
1567 CTimeSpan& AssignFromSmartString(
const string&
str);
1575 longGetCompleteDays(
void)
const;
1578 longGetCompleteHours(
void)
const;
1581 longGetCompleteMinutes(
void)
const;
1584 longGetCompleteSeconds(
void)
const;
1587 longGetNanoSecondsAfterSecond(
void)
const;
1595 doubleGetAsDouble(
void)
const;
1598 boolIsEmpty(
void)
const;
1605 voidSet(
longseconds,
longnanoseconds = 0);
1608 voidSet(
doubleseconds);
1630 voidInvert(
void);
1657 intx_Hour(
void)
const;
1661 intx_Minute(
void)
const;
1665 intx_Second(
void)
const;
1671 voidx_Normalize(
void);
1674 stringx_AsSmartString_Smart_Big(TSmartStringFlags
flags)
const;
1675 stringx_AsSmartString_Smart_Small(TSmartStringFlags
flags)
const;
1676 stringx_AsSmartString_Precision(TSmartStringFlags
flags)
const;
1716 CTimeout(
unsigned intsec,
unsigned intusec);
1725 boolIsDefault()
const;
1726 boolIsInfinite()
const;
1727 boolIsZero()
const;
1729 boolIsFinite()
const;
1736 unsigned longGetAsMilliSeconds(
void)
const;
1739 doubleGetAsDouble(
void)
const;
1745 void Get(
unsigned int*sec,
unsigned int*microsec)
const;
1748 voidGetNano(
unsigned int*sec,
unsigned int*nanosec)
const;
1756 voidSet(EType
type);
1759 voidSet(
unsigned intsec,
unsigned intmicrosec);
1762 voidSetNano(
unsigned intsec,
unsigned intnanosec);
1765 voidSet(
doublesec);
1814SetNano(seconds, nanoseconds);
1846 CDeadline(
unsigned intrel_seconds,
unsigned intrel_nanoseconds = 0);
1856{
return!IsInfinite() && GetRemainingTime().IsZero(); }
1860 voidGetExpirationTime(time_t* sec,
unsigned int* nanosec)
const;
1871 voidx_SetNowPlus(
unsigned intseconds,
unsigned intnanoseconds);
1903 CTimeGetLocalTime(
void);
1907 intGetLocalTimezone(
void);
1910 voidTuneup(
void);
1914 boolx_Tuneup(time_t timer,
longnanosec);
1961 doubleElapsed(
void)
const;
1970 doubleRestart(
void);
1980 boolIsRunning(
void)
const;
2018 operator string(
void)
const;
2036 stringAsSmartString(
2055 static doubleGetTimeMark();
2086 virtual const char* GetErrCodeString(
void)
const override;
2125 return tmp.AddYear(years);
2139 return tmp.AddDay(days);
2146 return tmp.AddHour(hours);
2153 return tmp.AddMinute(minutes);
2160 return tmp.AddSecond(seconds);
2167 return tmp.AddNanoSecond(nanoseconds);
2175 tmp.AddTimeSpan(ts);
2197 return tmp.Truncate();
2215 returnos <<
t.AsString();
2250 return m_Str.empty();
2313 tmp.AddTimeSpan(ts);
2321 tmp.AddTimeSpan(-ts);
2332CTime::operator
string(
void)
const{
returnAsString(); }
2345 if( &
t==
this) {
2355 return!(*
this==
t);
2361 return!(*
this<
t);
2367 return!(*
this>
t);
2373 return x_AddHour(hours, use_daylight,
true);
2395 return(
double)
DiffSecond(
t) / 60.0 / 60.0 / 24.0;
2505 Set(seconds, nanoseconds);
2593CTimeSpan::operator
string(
void)
const{
returnAsString(); }
2652 return!(*
this==
t);
2658 if(
m_Sec==
t.m_Sec) {
2668 if(
m_Sec==
t.m_Sec) {
2677 return!(*
this<
t);
2683 return!(*
this>
t);
2743 return!(*
this==
t);
2823 doublemark = current -
m_Start;
@ eEmpty
no filtering at all.
CNanoTimeout â Timeout interval, using nanoseconds.
CTimeout â Timeout interval.
Include a standard set of the NCBI C++ Toolkit most basic headers.
bool operator<(const CEquivRange &A, const CEquivRange &B)
bool operator==(const CEquivRange &A, const CEquivRange &B)
static const char * str(char *buf, int n)
#define NCBI_DEPRECATED_CTOR(decl)
Macro used to mark a constructor as deprecated.
ERound
Whether to truncate/round a value.
ESign
Signedness of a value.
@ eRound
Value must be rounded.
@ eNegative
Value is negative.
@ ePositive
Value is positive.
EErrCode
Error types that an application can generate.
CVect2< T > operator-(const CVect2< T > &v)
CExpression operator>=(CREATED, time_point)
CExpression operator<=(time_point, CREATED)
bool IsValid(const CSeq_point &pt, CScope *scope)
Checks that point >= 0 and point < length of Bioseq.
int32_t Int4
4-byte (32-bit) signed integer
uint16_t Uint2
2-byte (16-bit) unsigned integer
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool operator!=(const CNCBI_IPAddr &lhs, unsigned int rhs)
Int8 TSeconds
Number of seconds.
ETimeZone GetTimeZoneFormat(void) const
unsigned int TFlags
Binary OR of "EFlags".
bool x_Init(const string &str, const CTimeFormat &fmt, EErrAction err_action=eErr_Throw)
Helper method to set time value from string "str" using format "fmt".
double m_Total
Accumulated elapsed time.
int Minute(void) const
Get minute.
ESmartStringZeroMode
Which format use to output zero time span parts.
CTime & operator-=(const CTimeSpan &ts)
Operator to subtract time span.
int x_Second(void) const
Get second.
double DiffHour(const CTime &t) const
Difference in hours from specified time.
ETimeZonePrecision GetTimeZonePrecision(void) const
Get time zone precision.
CTime & ToLocalTime(void)
Convert the time into local time.
CTimeSpan operator+(const CTimeSpan &t) const
TSeconds TimeZoneOffset(void) const
Get difference between local timezone for current time object and UTC in seconds.
bool IsRunning(void) const
Check state of stopwatch.
EInitMode
Which initial value to use for time.
unsigned int TSmartStringFlags
Binary OR of "ESmartStringFlags".
double Restart(void)
Return time elapsed since first Start() or last Restart() call (in seconds).
CTimeSpan & operator=(const CTimeSpan &t)
Assignment operator.
EDayOfWeek
Day of week names.
Int4 days
days from 1/1/1900
ETimeZone SetTimeZone(ETimeZone val)
Set time zone.
CTime & operator=(const CTime &t)
Assignment operator.
CTime & AddTimeSpan(const CTimeSpan ×pan)
Add specified time span.
double Elapsed(void) const
Return time elapsed since first Start() or last Restart() call (in seconds).
bool IsEmpty(void) const
Return TRUE is an object keep zero time span.
bool IsGmtTime(void) const
bool operator==(const CTimeSpan &t) const
Operator to test equality of time span.
CTime operator-(const CTimeSpan &ts) const
Operator to subtract time span.
CTime operator+(const CTimeSpan &ts) const
EErrAction
Defines how to behave on error.
CTime & x_AddHour(int hours=1, EDaylight daylight=eDaylightDefault, bool shift_time=true)
Helper method to add hour with/without shift time.
TData m_Data
Packed members.
bool IsUniversalTime(void) const
Is time universal (GMT/UTC/Z)?
ETimeZone
Which initial value to use for timezone.
void SetFormat(const char *fmt, TFlags flags=fDefault)
Set the current time format.
CCurrentTime(ETimeZone tz=eLocal)
Constructor.
CTimeSpan & operator+=(const CTimeSpan &t)
#define NCBI_TIME_EMPTY_BITFIELD
long GetCompleteMinutes(void) const
Get number of complete minutes.
~CTimeout(void)
Destructor.
void x_Normalize(void)
Helper method to normalize stored time value.
long GetCompleteDays(void) const
Get number of complete days.
ETimeZone GetTimeZone(void) const
Get time zone.
int m_Timezone
Cached timezone adjustment for local time.
bool x_NeedAdjustTime(void) const
Helper method to check if there is a need adjust time in timezone.
long GetNanoSecondsAfterSecond(void) const
Get number of nanoseconds.
bool operator<=(const CTimeSpan &t) const
Operator to test if time span is less or equal.
void Set(long seconds, long nanoseconds=0)
Set time span in seconds and nanoseconds.
bool operator<(const CTimeSpan &t) const
Operator to test if time span is less.
EDaylight
Whether to adjust for daylight saving time.
ETimeZonePrecision SetTimeZonePrecision(ETimeZonePrecision val)
Set time zone precision.
CTime m_TunedTime
Last tuned time (changed by Tuneup())
CTime & AddMonth(int months=1, EDaylight adl=eDaylightDefault)
Add specified months and adjust for daylight saving time.
CTime & operator+=(const CTimeSpan &ts)
CTime Truncate(const CTime &t)
long NanoSecond(void) const
Get nano-seconds.
unsigned int m_SecAfterHour
Time interval in seconds after hour.
long MicroSecond(void) const
Get microseconds.
bool IsExpired(void) const
Check if the deadline is expired.
int Year(void) const
Get year.
void Stop(void)
Suspend the timer.
CCurrentTime & Update(void)
Update current time.
long MilliSecond(void) const
Get milliseconds.
CTime AddYear(const CTime &t, int years=1)
const long kMilliSecondsPerSecond
Number milliseconds in one second.
double GetAsDouble(void) const
Return time span as number of seconds.
CTime & ToTime(ETimeZone val)
Convert the time into specified time zone time.
CTime AddDay(const CTime &t, int days=1)
time_t m_LastSysTime
Last system time.
bool IsEmpty(void) const
Is time object empty (date and time)?
TFlags m_Flags
Format flags.
CStopWatch(EStart state=eStop)
Constructor.
CTime & ToUniversalTime(void)
Convert the time into universal (GMT/UTC) time.
CTime & AddYear(int years=1, EDaylight adl=eDaylightDefault)
Add specified years and adjust for daylight saving time.
ESign GetSign(void) const
Get sign of time span.
bool operator<=(const CTime &t) const
Operator to test if time is earlier or equal.
ETimeZone SetTimeZoneFormat(ETimeZone val)
void Invert(void)
Invert time span. Changes time span sign.
CTime & SetCurrent(void)
Make the time current in the presently active time zone.
CTimeSpan & operator-=(const CTimeSpan &t)
Operator to subtract time span.
CTime CurrentTime(CTime::ETimeZone tz=CTime::eLocal, CTime::ETimeZonePrecision tzp=CTime::eTZPrecisionDefault)
unsigned int m_Nanoseconds
EPredefined
Predefined formats.
struct TDBTimeU * TDBTimeUPtr
ETimeZonePrecision
What time zone precision to use for adjusting daylight saving time.
string AsSmartString(CTimeSpan::ESmartStringPrecision precision, ERound rounding, CTimeSpan::ESmartStringZeroMode zero_mode=CTimeSpan::eSSZ_SkipZero) const
Transform elapsed time to "smart" string.
CTimeout(void)
Create default timeout.
string AsSmartString(ESmartStringPrecision precision, ERound rounding, ESmartStringZeroMode zero_mode=eSSZ_SkipZero) const
Transform time span to "smart" string.
EStart
Defines how to create new timer.
struct TDBTimeI * TDBTimeIPtr
const TSeconds kAverageSecondsPerMonth
CTimeSpan DiffTimeSpan(const CTime &t) const
Difference in nanoseconds from specified time.
ostream & operator<<(ostream &os, const CStopWatch &sw)
Dumps the current stopwatch time to an output stream.
bool operator>(const CTimeSpan &t) const
Operator to test if time span is greater.
unsigned int m_Sec
Seconds part of the timeout.
CTimeSpan(void)
Default constructor.
ETimeZonePrecision tzprec
int Day(void) const
Get day.
static double GetTimeMark()
Get current time mark.
TSeconds DiffSecond(const CTime &t) const
Difference in seconds from specified time.
const double kAverageDaysPerYear
The average length of the year in the Gregorian (modern) calendar (in days)
ESmartStringPrecision
Precision for span "smart" string.
unsigned int m_NanoSec
Nanoseconds part of the timeout.
int x_Hour(void) const
Get hour.
Uint2 days
Days from 1/1/1900.
CTime AddHour(const CTime &t, int hours=1)
const string & GetString(void) const
Get format string.
CTimeSpan operator-(void) const
Unary operator "-" (minus) to change time span sign.
void Start(void)
Start the timer.
static CTimeFormat GetFormat(void)
Get the current time format.
bool operator>=(const CTime &t) const
Operator to test if time is later or equal.
bool IsEmpty(void) const
Check that format string is empty.
long m_NanoSec
Nanoseconds after the second.
NCBI_EXCEPTION_DEFAULT(CTimeException, CCoreException)
Uint2 time
Minutes from the beginning of current day.
Int4 time
x/300 seconds from the beginning of current day
TSeconds TimeZoneDiff(void) const
Get difference between local timezone for current time object and UTC in seconds.
ESmartStringFlags
AsSmartString() conversion flags.
CTime operator+(const CTimeSpan &ts, const CTime &t)
CTime m_LocalTime
Current local time.
string AsString(const CTimeFormat &fmt=kEmptyStr) const
Transform stopwatch time to string.
void Set(EType type)
Set special value.
int m_Daylight
Cached system daylight information.
CTime GetFastLocalTime(void)
Quick and dirty getter of local time.
double DiffNanoSecond(const CTime &t) const
Difference in nanoseconds from specified time.
int x_Minute(void) const
Get minute.
ERoundPrecision
Precision for rounding time.
double DiffDay(const CTime &t) const
Difference in days from specified time.
CTime AddMinute(const CTime &t, int minutes=1)
CTime & SetTimeT(const time_t t)
Set time using time_t time value.
double DiffMinute(const CTime &t) const
Difference in minutes from specified time.
CNanoTimeout(unsigned int seconds, unsigned int nanoseconds)
bool operator!=(const CTimeout &t) const
Operator to test in-equality of timeouts.
int Hour(void) const
Get hour.
bool IsInfinite(void) const
Check if the deadline is infinite.
CTime & x_SetTimeMTSafe(const time_t *t=0)
Version of x_SetTime() with MT-safe locks.
bool IsFinite() const
Check if timeout holds a numeric value.
void TuneupFastLocalTime(void)
CTime GetGmtTime(void) const
double m_Start
Start time value.
CTimeSpan & Clear(void)
Make the time span "empty",.
void Reset(void)
Stop (if running) and reset the timer.
string m_Str
String format.
CDeadline(CTimeout::EType)
bool operator>=(const CTimeSpan &t) const
Operator to test if time span is greater or equal.
CTime AddNanoSecond(const CTime &t, long nanoseconds=1)
EType
Type of special deadlines.
bool IsLocalTime(void) const
Is time local time?
const long kMicroSecondsPerSecond
Number of microseconds in one second.
TFlags GetFlags(void) const
Get format flags.
long GetCompleteSeconds(void) const
Get number of complete seconds.
EStart m_State
Stopwatch state (started/stopped)
CTime & AddHour(int hours=1, EDaylight adl=eDaylightDefault)
Add specified hours and adjust for daylight saving time.
CTime AddMonth(const CTime &t, int months=1)
const TSeconds kAverageSecondsPerYear
The average length of the year in the Gregorian (modern) calendar (in seconds)
int Second(void) const
Get second.
int Month(void) const
Get month.
long GetCompleteHours(void) const
Get number of complete hours.
bool operator!=(const CTime &t) const
Operator to test in-equality of time.
void *volatile m_IsTuneup
(bool) Tuneup() in progress (MT)
const long kNanoSecondsPerSecond
Number of nanoseconds in one second.
EType m_Type
Type of timeout.
CTime AddSecond(const CTime &t, long seconds=1)
bool operator!=(const CTimeSpan &t) const
Operator to test in-equality of time span.
ENameFormat
Which format use to get name of month or week of day.
time_t m_LastTuneupTime
Last Tuneup() time.
long m_Sec
Seconds part of the time span.
#define NCBI_TIME_BITFIELD(n)
bool IsEmptyDate(void) const
Is date empty?
@ eSSZ_SkipZero
Skip zero valued parts.
@ eSSZ_NoSkipZero
Print zero valued parts.
@ eCurrent
Use current time. See also CCurrentTime.
@ eErr_Throw
Throw an exception on error.
@ eUTC
UTC (Universal Coordinated Time)
@ eGmt
GMT (Greenwich Mean Time)
@ eConvert
Error converting value from one format to another.
@ eInvalid
Invalid time value.
@ eArgument
Bad function argument.
@ eAdjustDaylight
Adjust for daylight saving time.
@ eIgnoreDaylight
Ignore daylight saving time.
@ eDefault
Default timeout (to be interpreted by the client code)
@ eInfinite
Infinite timeout.
@ eFinite
A finite timeout value has been set.
@ eNone
Daylight saving not to affect time manipulations.
@ eMinute
Check condition - new minute.
@ eMonth
Check condition - new month.
@ eDay
Check condition - new day.
@ eHour
Check condition - new hour.
@ eStart
Start timer immediately after creating.
@ eStop
Do not start timer, just create it.
@ eRound_Minute
Round to minutes.
@ eRound_Day
Round to days.
@ eRound_Hour
Round to hours.
@ eRound_Millisecond
Round to milliseconds.
@ eRound_Second
Round to seconds.
#define NCBI_XNCBI_EXPORT
unsigned int
A callback function used to compare two keys in a database.
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
CNcbiMatrix< T > & operator+=(CNcbiMatrix< T > &, const CNcbiMatrix< U > &)
global addition: matrix += matrix
CNcbiMatrix< T > & operator-=(CNcbiMatrix< T > &, const CNcbiMatrix< U > &)
global subtraction: matrix -= matrix
const TYPE & Get(const CNamedParameterList *param)
ESerialDataFormat GetFormat(const string &name)
Database format for time where day and time is signed 32 bit.
Database format for time where day and time is unsigned 16 bit.
static int Round(double Num)
bool operator>(const typename tree< T, tree_node_allocator >::iterator_base &one, const typename tree< T, tree_node_allocator >::iterator_base &two)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4