Skip to content

dstarod/go_strftime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

C-like strftime on Golang

Implemented most useful patterns. Skipped %U, %W (not ISO week number) and modifiers E and O.

How to use

package main

import(
	"fmt"
	"time"
	"github.com/dstarodubtsev/go_strftime"
)

func main(){
	// "2015-06-23 17:57:05", as expected
	fmt.Println(go_strftime.Strftime("%Y-%m-%d %H:%M:%S", time.Now()))
}

About

C-like strftime for Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages