Skip to content

acstech/go-strftime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-strftime Build Status Coverage Status

Go date time format compatible with Ruby's Time#strftime

Install

go get github.com/acstech/go-strftime

Example

package main

import (
  "fmt"
  "time"

  "github.com/acstech/go-strftime"
)

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

  • Go 100.0%