You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
170 B
12 lines
170 B
2 months ago
|
package misc
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"strconv"
|
||
|
)
|
||
|
|
||
|
func TimestampMinus(curr string, m int) string {
|
||
|
curr_time, _ := strconv.Atoi(curr)
|
||
|
return fmt.Sprint(curr_time - int(m))
|
||
|
}
|