blob: 68ce8780e1f78d1a1e970cef8b45fb3ec9503421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package cobol
import "time"
/*
etimef := func(e *forgepb.Set) string {
etime := e.Etime.AsTime()
s := etime.Format("2006/01/02 15:04")
if strings.HasPrefix(s, "1970/") {
// just show a blank if it's not set
return ""
}
return s
}
t.AddStringFunc("etime", etimef)
*/
/*
// sample dates for reference
// whois: 1994-07-28T04:00:00Z
// git am:
// linux date: Sat Oct 11 08:26:27 CDT 2025
// /bin/ls: drwxr-xr-x 2 root root 4096 Aug 15 05:31 riscv
// ping: 64 bytes from 2604:bbc0::1: icmp_seq=1 ttl=50 time=30.4 ms
ctimef := func(p *forgepb.Set) string {
ctime := p.Ctime.AsTime()
return ctime.Format("2006/01/02 15:04")
}
}
*/
func Time(someTime any) string {
return "todo"
}
func GetTime(someTime any) (time.Time, error) {
return time.Now(), NoTime
}
|