aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-09 18:33:20 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-09 18:33:20 +0200
commita57845f08a6eb9bc32c2173f15472e0c29722cf6 (patch)
tree68724e66a4caadf78c464a9cd93f62c8aaed7401 /code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts
parentb7e39b59fd0fc7b5610ebff29035bf622079e0d8 (diff)
downloadgreatoffice-a57845f08a6eb9bc32c2173f15472e0c29722cf6.tar.xz
greatoffice-a57845f08a6eb9bc32c2173f15472e0c29722cf6.zip
refactor: Restructure and create new models
Diffstat (limited to 'code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts')
-rw-r--r--code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts b/code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts
new file mode 100644
index 0000000..da71bc9
--- /dev/null
+++ b/code/app/src/lib/models/internal/UnwrappedEntryDateTime.ts
@@ -0,0 +1,9 @@
+import type { Temporal } from "temporal-polyfill";
+
+export interface UnwrappedEntryDateTime {
+ start_date: Temporal.PlainDate,
+ stop_date: Temporal.PlainDate,
+ start_time: Temporal.PlainTime,
+ stop_time: Temporal.PlainTime,
+ duration: Temporal.Duration,
+}