mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
11 lines
158 B
Go
11 lines
158 B
Go
![]() |
package util
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
func GetCurrentTime() string {
|
||
|
timestamp := time.Now().Unix()
|
||
|
tm := time.Unix(timestamp, 0)
|
||
|
return tm.Format(time.RFC3339)
|
||
|
}
|
||
|
|