File Coverage

src/panda/time.h
Criterion Covered Total %
statement 0 3 0.0
branch 0 6 0.0
condition n/a
subroutine n/a
pod n/a
total 0 9 0.0


line stmt bran cond sub pod time code
1             #pragma once
2             #include
3             #include
4              
5             namespace panda { namespace time {
6              
7             bool gmtime (ptime_t epoch, datetime* result);
8             ptime_t timegm (datetime* date);
9             ptime_t timegml (datetime* date);
10             bool anytime (ptime_t epoch, datetime* result, const Timezone* zone);
11             ptime_t timeany (datetime* date, const Timezone* zone);
12             ptime_t timeanyl (datetime* date, const Timezone* zone);
13              
14 0 0         inline bool localtime (ptime_t epoch, datetime* result) { return anytime(epoch, result, tzlocal()); }
15 0 0         inline ptime_t timelocal (datetime* date) { return timeany(date, tzlocal()); }
16 0 0         inline ptime_t timelocall (datetime* date) { return timeanyl(date, tzlocal()); }
17              
18             size_t strftime (char* buf, size_t maxsize, const char* format, const datetime* timeptr);
19             void printftime (const char* format, const datetime* timeptr);
20              
21             }}
22