grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Wow is it helpful when we spit out the issue number that failed to import
draft
2020-08-04, Gary Kramlich
6ec0d80db3e0
Wow is it helpful when we spit out the issue number that failed to import
package
youtrack
import
(
"fmt"
"time"
)
func
formatTime
(
t
time
.
Time
)
int64
{
if
t
.
IsZero
()
{
return
0
}
return
t
.
Unix
()
*
1000
}
func
formatTimeString
(
t
time
.
Time
)
string
{
return
fmt
.
Sprintf
(
"%d"
,
formatTime
(
t
))
}