How can we create timestamp

Support
  • Hello,
    I need to create like this.
    How can i do this?
    @Fox @GhostZ

    func Snowflake() int64 {
    snowflake := strconv.FormatInt((time.Now().UTC().UnixNano()/1000000)-1420070400000, 2) + "0000000000000000000000"
    nonce, _ := strconv.ParseInt(snowflake, 2, 64)
    return nonce
    }

    Nonce = 960980141784170496

  • 0 Votes
    9 Posts
    1124 Views
  • 0 Votes
    3 Posts
    721 Views
  • 0 Votes
    2 Posts
    828 Views
  • Can this be done?

    Support
    0 Votes
    3 Posts
    1899 Views
  • 0 Votes
    8 Posts
    2738 Views