go packae unix time
package main
import (
"fmt"
"time"
)
func main() {
// Step 1: Get the current Unix time in seconds
currentTime := time.Now().Unix()
// Step 2: Convert the Unix time to a human-readable format
humanReadableTime := time.Unix(currentTime, 0)
// Step 3: Print the current Unix time in seconds
fmt.Println("Current Unix Time:", currentTime)
// Step 4: Print the corresponding human-readable time
fmt.Println("Human-Readable Time:", humanReadableTime)
}