Topic: Encapsulate std::tm in std::chrono::time_point<> and
Author: HarD Gamer <rodrigojose690@gmail.com>
Date: Mon, 29 Aug 2016 14:54:47 -0700 (PDT)
Raw View
------=_Part_1008_1157461857.1472507687799
Content-Type: multipart/alternative;
boundary="----=_Part_1009_533011702.1472507687799"
------=_Part_1009_533011702.1472507687799
Content-Type: text/plain; charset=UTF-8
<https://lh3.googleusercontent.com/-UccHw2rIpKI/V8StimrhdTI/AAAAAAAAAQQ/d1FAZi9nJcAPo9nvXsUUXeLE3kPgXQquwCLcB/s1600/time.png>
Now, if we need a textual representation of a time_point or the current
hour, we have a lot of work to do.
If we had a intuitive time_point<...> now; ....
now.sec(); now.min(); now.hour(); now.day(); now.month(); now.year(); ...
[or now.tm()].
the work would be more readably and fun.
And what about a simple now.to_string()?
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/25dce372-aeb4-4c27-afb6-5d7a49d86ac3%40isocpp.org.
------=_Part_1009_533011702.1472507687799
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><p class=3D"separator" style=3D"text-align: center; clear:=
both;"><a imageanchor=3D"1" href=3D"https://lh3.googleusercontent.com/-Ucc=
Hw2rIpKI/V8StimrhdTI/AAAAAAAAAQQ/d1FAZi9nJcAPo9nvXsUUXeLE3kPgXQquwCLcB/s160=
0/time.png" style=3D"margin-left: 1em; margin-right: 1em;"><img src=3D"http=
s://lh3.googleusercontent.com/-UccHw2rIpKI/V8StimrhdTI/AAAAAAAAAQQ/d1FAZi9n=
JcAPo9nvXsUUXeLE3kPgXQquwCLcB/s320/time.png" border=3D"0" style=3D"" width=
=3D"320" height=3D"174"></a></p>Now, if we need a textual representation of=
a time_point or the current hour, we have a lot of work to do.=C2=A0<div>I=
f we had a intuitive =C2=A0time_point<...> now; .... now.sec();=C2=A0=
now.min();=C2=A0now.hour();=C2=A0now.day();=C2=A0now.month();=C2=A0now.year=
(); ... [or now.tm()].</div><div>the work would be more readably and fun.</=
div><div>And what about a simple now.to_string()?</div><div><br></div></div=
>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/25dce372-aeb4-4c27-afb6-5d7a49d86ac3%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/25dce372-aeb4-4c27-afb6-5d7a49d86ac3=
%40isocpp.org</a>.<br />
------=_Part_1009_533011702.1472507687799--
------=_Part_1008_1157461857.1472507687799--
.