Sep. 10th, 2012

jyrgenn: Blurred head shot from 2007 (Default)
Recently I complained about the "Go" programming language's time.Format(), which is there because someone found strftime() unappealing.

I find time.Format() unappealing, so I started to write a strftime(). It does all the conversion specifiers, but does not support any modifiers. These should be gracefully ignored, though. Locales are also not supported.

If anyone wants to use it as a starting point to add modifiers and locale support, or just use it as it is, you are welcome. License is BSD-like.

I'd also appreciate any advice how to make it better, more Go-like, more idiomatic.

https://git.w21.org/lib/godate

Profile

jyrgenn: Blurred head shot from 2007 (Default)
jyrgenn

September 2022

S M T W T F S
    123
45 678910
11121314151617
18192021222324
252627282930 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags