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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgroup-go-utils
Merge requests
!28
Added human-readable date layout that includes time
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Added human-readable date layout that includes time
human-readable-date-layout-with-time
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
James Page
requested to merge
human-readable-date-layout-with-time
into
main
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
742af365
1 commit,
3 years ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
date_utils/date_utils.go
+
5
−
0
View file @ 742af365
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
Loading