summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/link.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/link.go b/storage/link.go
index f334f42..6f0a0c3 100644
--- a/storage/link.go
+++ b/storage/link.go
@@ -61,3 +61,8 @@ func (l Link) Valid() error {
return nil
}
+
+func (l Link) MinutesLeft() int {
+ return int(l.OpensFrom.Sub(time.Now()).Minutes())
+
+}