From 3c0c86dd45f685355dce46ebfc554cd40abb2d0a Mon Sep 17 00:00:00 2001 From: Rop Date: Mon, 29 Oct 2018 20:00:32 +0100 Subject: [PATCH] small README fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5455924..1fa2549 100644 --- a/README.md +++ b/README.md @@ -566,7 +566,7 @@ Returns the one-letter military code for the timezone. See [here](https://www.ti You might have code that put the time on a display in some really nice-looking format, using `dateTime`. The main loop wants to keep the time updated, but not every time the main loop runs, because it would cause the display to flicker. The classic solution for this is to store the time, recreate the string every time and compare to see if it changed. With `secondChanged` and `minuteChanged` you can just write something like: ``` -if (minuteChanged()) WriteToSomeDisplay(UTC.dateString("H:i")); +if (minuteChanged()) WriteToSomeDisplay(UTC.dateTime("H:i")); ```