summaryrefslogtreecommitdiff
path: root/time.go
diff options
context:
space:
mode:
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) {