github.com/zerjioang/time32@v0.0.0-20211102104504-b756043b9843/example/main.go (about)

     1  //
     2  // Created by zerjioang
     3  // https://github/zerjioang
     4  // Copyright (c) 2020. All rights reserved.
     5  //
     6  // SPDX-License-Identifier: GPL-3.0
     7  //
     8  
     9  package main
    10  
    11  import (
    12  	"fmt"
    13  	"github.com/zerjioang/time32"
    14  	"time"
    15  )
    16  
    17  func main() {
    18  	fmt.Println("current time using time32.Epoch is: ", time32.Epoch())
    19  	fmt.Println("current time using time32.ReuseUnix is: ", time32.ReuseUnix())
    20  	fmt.Println("current time using time.Now().Unix() is: ", time.Now().Unix())
    21  }