Skip to content

takmongwai/go-strftime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

go-strftime

golang date time format like ruby layout

install

go get github.com/weidewang/go-strftime

test

package main

import (
      "fmt"
      "github.com/weidewang/go-strftime"
      "time"
      )

func main() {

t := time.Now()
     s := strftime.Strftime(&t, "%Y-%m-%d %H:%M:%S")
     fmt.Println(s)

}



About

golang date time format like ruby layout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages