#include <UT_Date.h>
|
static int | dprintf (UT_WorkBuffer &buf, const char *format, time_t tm) |
|
static int | dprintf (char *buf, int buf_size, const char *format, time_t tm) |
|
static std::ostream & | dprintf (std::ostream &os, const char *format, time_t tm, int *item_count=NULL) |
|
static int | dprintf (UT_WorkBuffer &buf, const char *format, const struct tm *tm) |
|
static int | dprintf (char *buf, int buf_size, const char *format, const struct tm *tm) |
|
static std::ostream & | dprintf (std::ostream &os, const char *format, const struct tm *tm, int *item_count=NULL) |
|
static fpreal | parseSeconds (const char *time) |
|
static void | appendPrintSeconds (UT_WorkBuffer &buf, fpreal seconds, bool force_hours=false, bool force_minutes=false, bool force_hundredths=false) |
|
static void | printSeconds (UT_WorkBuffer &buf, fpreal seconds, bool force_hours=false, bool force_minutes=false, bool force_hundredths=false) |
|
Definition at line 22 of file UT_Date.h.
static void UT_Date::appendPrintSeconds |
( |
UT_WorkBuffer & |
buf, |
|
|
fpreal |
seconds, |
|
|
bool |
force_hours = false , |
|
|
bool |
force_minutes = false , |
|
|
bool |
force_hundredths = false |
|
) |
| |
|
static |
Print elapsed time in seconds in the form HH:MM:SS.SS where leading HH and MM may be omitted (unless force_hours or force_minutes is true) If force_hours is true, then force_minutes is automatically true
The text is appended to the work-buffer
static int UT_Date::dprintf |
( |
UT_WorkBuffer & |
buf, |
|
|
const char * |
format, |
|
|
time_t |
tm |
|
) |
| |
|
static |
static int UT_Date::dprintf |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
format, |
|
|
time_t |
tm |
|
) |
| |
|
static |
static std::ostream& UT_Date::dprintf |
( |
std::ostream & |
os, |
|
|
const char * |
format, |
|
|
time_t |
tm, |
|
|
int * |
item_count = NULL |
|
) |
| |
|
static |
static int UT_Date::dprintf |
( |
UT_WorkBuffer & |
buf, |
|
|
const char * |
format, |
|
|
const struct tm * |
tm |
|
) |
| |
|
static |
static int UT_Date::dprintf |
( |
char * |
buf, |
|
|
int |
buf_size, |
|
|
const char * |
format, |
|
|
const struct tm * |
tm |
|
) |
| |
|
static |
static std::ostream& UT_Date::dprintf |
( |
std::ostream & |
os, |
|
|
const char * |
format, |
|
|
const struct tm * |
tm, |
|
|
int * |
item_count = NULL |
|
) |
| |
|
static |
static fpreal UT_Date::parseSeconds |
( |
const char * |
time | ) |
|
|
static |
Parse a time in the format
- HH:MM:SS.SS or HH:MM:SS
- MM:SS.SS or HH:MM
- SS.SS or just SS For example 21:33.4 would return 21*60+33.4 = 1293.4
static void UT_Date::printSeconds |
( |
UT_WorkBuffer & |
buf, |
|
|
fpreal |
seconds, |
|
|
bool |
force_hours = false , |
|
|
bool |
force_minutes = false , |
|
|
bool |
force_hundredths = false |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: