github.com/unidoc/unidoc@v2.2.0+incompatible/common/time.go (about) 1 /* 2 * This file is subject to the terms and conditions defined in 3 * file 'LICENSE.md', which is part of this source code package. 4 */ 5 6 package common 7 8 import ( 9 "time" 10 ) 11 12 const timeFormat = "2 January 2006 at 15:04" 13 14 func UtcTimeFormat(t time.Time) string { 15 return t.Format(timeFormat) + " UTC" 16 }