34 constexpr const char *partNames[] = {
"date",
"time",
"seconds" };
35 return bitNumber>=0 && bitNumber<
SF_NumBits ? partNames[bitNumber] :
"";
This is an alternative implementation of QCString.
QCString dateToString(DateTimeType includeTime)
Returns the current date, when includeTime is set also the time is provided.
constexpr int SF_Seconds
the seconds are presenting in the format string
constexpr const char * SF_bit2str(int bitNumber)
Helper function that returns the name related one of the SF bits.
QCString yearToString()
Returns the current year as a string.
constexpr int SF_NumBits
number of bits in SF vector
QCString formatDateTime(const QCString &format, const std::tm &dt, int &formatUsed)
Return a string representation for a given std::tm value that is formatted according to the pattern g...
std::tm getCurrentDateTime()
Returns the filled in std::tm for the current date and time.
constexpr int SF_Date
Date and time related functions.
QCString dateTimeFromString(const QCString &spec, std::tm &dt, int &format)
Returns the filled in std::tm for a given string representing a date and/or time.
constexpr int SF_Time
a time is presenting in the format string