From 6eef52aecffbb3891354eb6bdc3cda632f968f7e Mon Sep 17 00:00:00 2001
From: "daniel.naude" <danieln@bob.co.za>
Date: Mon, 29 Apr 2024 14:24:19 +0200
Subject: [PATCH] Add trading hours type in date utils

---
 date_utils/date_utils.go | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/date_utils/date_utils.go b/date_utils/date_utils.go
index ccca80d..edace1f 100644
--- a/date_utils/date_utils.go
+++ b/date_utils/date_utils.go
@@ -1,10 +1,11 @@
 package date_utils
 
 import (
-	"github.com/araddon/dateparse"
 	"reflect"
 	"strconv"
 	"time"
+
+	"github.com/araddon/dateparse"
 )
 
 const TimeZoneString = "Africa/Johannesburg"
@@ -271,3 +272,8 @@ func formatTimestampsWithTimeZoneInSlice(fieldValue reflect.Value, location *tim
 	}
 	return nil
 }
+
+type TradingHours struct {
+	Days  string `json:"days"`
+	Times string `json:"times"`
+}
-- 
GitLab