# | Line 31 | Line 31 | ext::String Stamp::getW3() const | |
---|---|---|
31 | return when; | |
32 | } | |
33 | ||
34 | + | ext::String Stamp::getDate() const |
35 | + | { |
36 | + | char date[11]; |
37 | + | |
38 | + | std::strftime(date, 11, "%m/%d/%Y", &stamp); |
39 | + | |
40 | + | return date; |
41 | + | } |
42 | + | |
43 | + | ext::String Stamp::getTime() const |
44 | + | { |
45 | + | char time[12]; |
46 | + | |
47 | + | std::strftime(time, 12, "%I:%M:%S %p", &stamp); |
48 | + | |
49 | + | return time; |
50 | + | } |
51 | + | |
52 | void Stamp::setSeconds(int seconds) | |
53 | { | |
54 | stamp.tm_sec = seconds; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |