[time.clock.local] # 30 Time library [[time]](./#time) ## 30.7 Clocks [[time.clock]](time.clock#local) ### 30.7.9 Local time [time.clock.local] [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L3511) The family of time points denoted by local_time are based on the pseudo clock local_t[.](#1.sentence-1) local_t has no member now() and thus does not meet the clock requirements[.](#1.sentence-2) Nevertheless local_time serves the vital role of representing local time with respect to a not-yet-specified time zone[.](#1.sentence-3) Aside from being able to get the current time, the complete time_point algebra is available for local_time (just as for sys_time)[.](#1.sentence-4) [🔗](#lib:operator%3c%3c,local_time) `template basic_ostream& operator<<(basic_ostream& os, const local_time& lt); ` [2](#2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L3531) *Effects*: os << sys_time{lt.time_since_epoch()}; [3](#3) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L3537) *Returns*: os[.](#3.sentence-1) [🔗](#lib:from_stream,local_time) `template> basic_istream& from_stream(basic_istream& is, const charT* fmt, local_time& tp, basic_string* abbrev = nullptr, minutes* offset = nullptr); ` [4](#4) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L3552) *Effects*: Attempts to parse the input stream is into the local_time tp using the format flags given in the NTCTS fmt as specified in [[time.parse]](time.parse "30.13 Parsing")[.](#4.sentence-1) If the parse fails to decode a valid date,is.setstate(ios_base​::​failbit) is called andtp is not modified[.](#4.sentence-2) If %Z is used and successfully parsed, that value will be assigned to *abbrev if abbrev is non-null[.](#4.sentence-3) If %z (or a modified variant) is used and successfully parsed, that value will be assigned to *offset if offset is non-null[.](#4.sentence-4) [5](#5) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L3566) *Returns*: is[.](#5.sentence-1)