github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/time6_native.gno (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  )
     7  
     8  func main() {
     9  	t := &time.Time{}
    10  	t.UnmarshalText([]byte("1985-04-12T23:20:50.52Z"))
    11  
    12  	fmt.Println(t)
    13  }
    14  
    15  // Output:
    16  // 1985-04-12 23:20:50.52 +0000 UTC