From 0270da9c0cfa721e59f3841d54ccda4ed70676a6 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 8 Jul 2017 11:43:09 -0400 Subject: [PATCH] Updated Examples and Recipes (markdown) --- Examples-and-Recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples-and-Recipes.md b/Examples-and-Recipes.md index b1e70df..d62208b 100644 --- a/Examples-and-Recipes.md +++ b/Examples-and-Recipes.md @@ -104,7 +104,7 @@ main() std::cout << date::format("%T\n", sy.get_local_time() - la.get_local_time()); } ``` -Let's say you want to find out how many hours ahead Sydney is from LA (now). First get the current UTC time. Then create a `zoned_time` for both "America/Los_Angeles" and "Australia/Sydney" using that current UTC time. Then subtract their `local_time`s. `make_time` is a handy formatting tool for printing out that duration: +Let's say you want to find out how many hours ahead Sydney is from LA (now). First get the current UTC time. Then create a `zoned_time` for both "America/Los_Angeles" and "Australia/Sydney" using that current UTC time. Then subtract their `local_time`s. `format` is a handy formatting tool for printing out that duration: 17:00:00.000000