Rich Enhanced Shell History - Contextual shell history for zsh and bash
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.
 
 
 
resh/internal/epochtime/epochtime.go

14 lines
201 B

package epochtime
import (
"fmt"
"time"
)
func TimeToString(t time.Time) string {
return fmt.Sprintf("%.2f", float64(t.UnixMilli())/1000)
}
func Now() string {
return TimeToString(time.Now())
}