wavelength 1.0.0
Loading...
Searching...
No Matches
DateTime.h
Go to the documentation of this file.
1#pragma once
2
3#include "utl/PrnStream.h"
4#include "utl/Str.h"
5
11class DateTime {
12public:
19 void ToString(String &out) const;
20
21 unsigned char mSec;
22 unsigned char mMin;
23 unsigned char mHour;
24 unsigned char mDay;
25 unsigned char mMonth;
26 unsigned char mYear;
27};
28
36bool GetDateTime(DateTime &dateTime);
37
46PrnStream &operator<<(PrnStream &stream, const DateTime &dateTime);
PrnStream & operator<<(PrnStream &stream, const DateTime &dateTime)
Print a date and time as DateTime::ToString() writes it.
bool GetDateTime(DateTime &dateTime)
Read the local date and time.
Local date and time of the console clock.
Definition datetime.h:14
unsigned char mSec
Definition DateTime.h:21
void ToString(String &out) const
Write the date and time as MM/DD/YYYY hh:mm:ss.
unsigned char mMin
Definition DateTime.h:22
Text output stream.
Definition prnstream.h:16
Growable text buffer that is also a PrnStream.
Definition string.h:19