From f03550bebeba7fea31cbba78ae8b677081edf671 Mon Sep 17 00:00:00 2001 From: jjliggett <67353173+jjliggett@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:55:28 -0400 Subject: [PATCH] feat: Display the Unix timestamp on the page (#142) --- CurrentTimeApp.Components/CurrentTime.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CurrentTimeApp.Components/CurrentTime.razor b/CurrentTimeApp.Components/CurrentTime.razor index 922f2b1..fe5020f 100644 --- a/CurrentTimeApp.Components/CurrentTime.razor +++ b/CurrentTimeApp.Components/CurrentTime.razor @@ -5,7 +5,7 @@
According to your computer, the current Universal Time Coordinated (UTC) is @utcNow.ToLongTimeString() on @utcNow.ToLongDateString(). This is also called Universal Time and Universal Coordinated Time, and is equivalent to Greenwich Mean Time (GMT).
+According to your computer, the current Universal Time Coordinated (UTC) is @utcNow.ToLongTimeString() on @utcNow.ToLongDateString(). This is also called Universal Time and Universal Coordinated Time, and is equivalent to Greenwich Mean Time (GMT). The current Unix timestamp is @DateTimeOffset.UtcNow.ToUnixTimeSeconds()
.
Also according to your computer, the current local time is @currentTime.ToLongTimeString() (@timeZoneName).