Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 19, 2021 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/ac03247b23b6d7812931ce842ddae14e to your computer and use it in GitHub Desktop.
Save parzibyte/ac03247b23b6d7812931ce842ddae14e to your computer and use it in GitHub Desktop.
package main
import "fmt"
import "time"
func main() {
t := time.Now()
fecha := fmt.Sprintf("%d-%02d-%02dT%02d:%02d:%02d",
t.Year(), t.Month(), t.Day(),
t.Hour(), t.Minute(), t.Second())
fmt.Println("La fecha actual es =>", fecha)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment