| 45 | }; |
| 46 | |
| 47 | void SC::TimeTest::testAbsoluteParseLocal() |
| 48 | { |
| 49 | //! [absoluteParseLocalSnippet] |
| 50 | Time::Absolute::ParseResult local; |
| 51 | SC_TEST_EXPECT(Time::Realtime::now().parseLocal(local)); |
| 52 | SC_TEST_EXPECT(local.year > 2022); |
| 53 | String result; |
| 54 | (void)StringBuilder::format(result, "{} {:02}/{:02}/{} {:02}:{:02}:{:02} {}", local.getDay(), local.dayOfMonth, |
| 55 | local.getMonth(), local.year, local.hour, local.minutes, local.seconds, |
| 56 | local.isDaylightSaving ? "DAYLIGHT SAVING" : "NO DAYLIGHT SAVING"); |
| 57 | |
| 58 | report.console.printLine(result.view()); |
| 59 | //! [absoluteParseLocalSnippet] |
| 60 | } |
| 61 | |
| 62 | void SC::TimeTest::testHighResolutionCounterSnap() |
| 63 | { |