mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 13:14:26 +02:00
Updated Examples and Recipes (markdown)
@@ -103,8 +103,8 @@ int
|
|||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
auto current_time = std::chrono::system_clock::now();
|
auto current_time = std::chrono::system_clock::now();
|
||||||
auto la = date::make_zoned("America/Los_Angeles", current_time);
|
auto la = date::zoned_time{"America/Los_Angeles", current_time};
|
||||||
auto sy = date::make_zoned("Australia/Sydney", current_time);
|
auto sy = date::zoned_time{"Australia/Sydney", current_time};
|
||||||
std::cout << date::format("%T\n", sy.get_local_time() - la.get_local_time());
|
std::cout << date::format("%T\n", sy.get_local_time() - la.get_local_time());
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user