Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bobgroup-go-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgroup-go-utils
Commits
742af365
Commit
742af365
authored
2 years ago
by
James Page
Browse files
Options
Downloads
Patches
Plain Diff
Added human-readable date layout that includes time
parent
eec1a136
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!28
Added human-readable date layout that includes time
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
date_utils/date_utils.go
+5
-0
5 additions, 0 deletions
date_utils/date_utils.go
with
5 additions
and
0 deletions
date_utils/date_utils.go
+
5
−
0
View file @
742af365
...
...
@@ -62,6 +62,11 @@ func DateLayoutHumanReadable() string {
return
layout
}
func
DateLayoutHumanReadableWithTime
()
string
{
layout
:=
"02 Jan 2006 15:04"
return
layout
}
func
DateLayoutTrimmed
()
string
{
layout
:=
"20060102150405"
return
layout
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment