grim/youtrack-import
Clone
Summary
Browse
Changes
Graph
Use the built in mime stuff to figure out the content type for attachments
2020-01-14, Gary Kramlich
4763018b25c8
Use the built in mime stuff to figure out the content type for attachments
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
))
}