summaryrefslogtreecommitdiff
path: root/time.string.go
diff options
context:
space:
mode:
Diffstat (limited to 'time.string.go')
-rw-r--r--time.string.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/time.string.go b/time.string.go
index b3aa166..22f667d 100644
--- a/time.string.go
+++ b/time.string.go
@@ -7,6 +7,22 @@ import (
"time"
)
+// --------------------------------------------------------------------------------
+// | Your String Component | Example | Go Reference Component | Layout String Part |
+// --------------------------------------------------------------------------------
+// | 4-digit year | 2025 | 2006 | 2006 |
+// | Separator | / | (literal) | / |
+// | 2-digit month | 10 | 01 | 01 |
+// | Separator | / | (literal) | / |
+// | 2-digit day | 14 | 02 | 02 |
+// | Space separator | | (literal) | |
+// | 2-digit hour (24h) | 12 | 15 | 15 |
+// | Separator | : | (literal) | : |
+// | 2-digit minute | 13 | 04 | 04 |
+// | Separator | : | (literal) | : |
+// | 2-digit second | 12 | 05 | 05 |
+// --------------------------------------------------------------------------------
+
func doTimeString(BUILDTIME string) (*time.Time, error) {
parts := strings.Split(BUILDTIME, " ")
if len(parts) == 1 {