summaryrefslogtreecommitdiff
path: root/time.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 10:48:23 -0500
committerJeff Carr <[email protected]>2025-10-14 10:48:23 -0500
commite6fa4d421e9f253715da425e9953e17a5e47f48b (patch)
tree09db18ee763421fc53cd3ab6f4013e98f2cce129 /time.go
parentbf5891a4c983fd4300ed57d1e42a0e0dca72fea4 (diff)
notesv0.0.23
Diffstat (limited to 'time.go')
-rw-r--r--time.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/time.go b/time.go
index 99a74e7..a1e7828 100644
--- a/time.go
+++ b/time.go
@@ -29,6 +29,10 @@ func Time(someTimeAgoOrLaterNotsure any) string {
return FormatTime(*t)
}
+func isUTC(t time.Time) bool {
+ return t.Location() == time.UTC
+}
+
func TimeLocal(someTimeAgoOrLaterNotsure any) string {
guess, t, err := TimeCheck(someTimeAgoOrLaterNotsure)
if errors.Is(err, Broken) {