[time.zone.zonedtime.members]

# 30 Time library [[time]](./#time)

## 30.11 Time zones [[time.zone]](time.zone#zonedtime.members)

### 30.11.7 Class template zoned_time [[time.zone.zonedtime]](time.zone.zonedtime#members)

#### 30.11.7.3 Member functions [time.zone.zonedtime.members]

[ð](#lib:operator=,zoned_time)

`zoned_time& operator=(const sys_time<Duration>& st);
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L9992)

*Effects*: After assignment, get_sys_time() == st[.](#1.sentence-1)

This assignment has no effect on the return value of get_time_zone()[.](#1.sentence-2)

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L9997)

*Returns*: *this[.](#2.sentence-1)

[ð](#lib:operator=,zoned_time_)

`zoned_time& operator=(const local_time<Duration>& lt);
`

[3](#3)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10008)

*Effects*: After assignment, get_local_time() == lt[.](#3.sentence-1)

This assignment has no effect on the return value of get_time_zone()[.](#3.sentence-2)

[4](#4)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10013)

*Returns*: *this[.](#4.sentence-1)

[ð](#lib:operator_sys_time,zoned_time)

`operator sys_time<duration>() const;
`

[5](#5)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10024)

*Returns*: get_sys_time()[.](#5.sentence-1)

[ð](#lib:operator_local_time,zoned_time)

`explicit operator local_time<duration>() const;
`

[6](#6)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10035)

*Returns*: get_local_time()[.](#6.sentence-1)

[ð](#lib:get_time_zone,zoned_time)

`TimeZonePtr get_time_zone() const;
`

[7](#7)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10046)

*Returns*: zone_[.](#7.sentence-1)

[ð](#lib:get_local_time,zoned_time)

`local_time<duration> get_local_time() const;
`

[8](#8)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10057)

*Returns*: zone_->to_local(tp_)[.](#8.sentence-1)

[ð](#lib:get_sys_time,zoned_time)

`sys_time<duration> get_sys_time() const;
`

[9](#9)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10068)

*Returns*: tp_[.](#9.sentence-1)

[ð](#lib:get_info,zoned_time)

`sys_info get_info() const;
`

[10](#10)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/time.tex#L10079)

*Returns*: zone_->get_info(tp_)[.](#10.sentence-1)
