MCPcopy Create free account
hub / github.com/writefreely/writefreely / CreatedFriendly

Method CreatedFriendly

users.go:112–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112func (u User) CreatedFriendly() string {
113 /*
114 // TODO: accept a locale in this method and use that for the format
115 var loc monday.Locale = monday.LocaleEnUS
116 return monday.Format(u.Created, monday.DateTimeFormatsByLocale[loc], loc)
117 */
118 return u.Created.Format("January 2, 2006, 3:04 PM")
119}
120
121// Cookie strips down an AuthUser to contain only information necessary for
122// cookies.

Callers

nothing calls this directly

Calls 1

FormatMethod · 0.80

Tested by

no test coverage detected