Skip to content

Commit

Permalink
feat: Display the Unix timestamp on the page (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjliggett committed Jul 4, 2023
1 parent ae97a72 commit f03550b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CurrentTimeApp.Components/CurrentTime.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<h1><b>Current Time</b></h1>

<p style="width: 80%">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).</p>
<p style="width: 80%">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 <span title="the number of seconds since midnight January 1, 1970 UTC">Unix timestamp</span> is <code>@DateTimeOffset.UtcNow.ToUnixTimeSeconds()</code>.</p>

<p style="width: 80%">Also according to your computer, the current local time is @currentTime.ToLongTimeString() (@timeZoneName).</p>

Expand Down

0 comments on commit f03550b

Please sign in to comment.