Commits

Miki Tebeka committed 478903f

The essential noise

Comments (0)

Files changed (4)

+syntax: glob
+
+README.html
+2012-12-07 version 0.1.0
+    * Initial release
+Copyright (c) 2012, Miki Tebeka <miki.tebeka@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+`strftime`_ For Go
+==================
+
+Q: Why, we already have `time.Format`_?
+
+A: Yes, but it becomes tricky to use if if you have string with things other
+than time in them. (like `/path/to/%Y/%m/%d/report`)
+
+
+.. _strftime:  http://docs.python.org/2/library/time.html#time.strftime
+.. _`time.Format`: http://golang.org/pkg/time/#Time.Format
+
+
+Installing
+==========
+::
+
+    go get bitbucket.org/tebeka/strtime
+
+Example
+=======
+::
+
+    str, err := strftime.Format("%Y/%m/%d", time.Now())
+
+
+Bugs
+====
+The following directive are not supported
+::
+
+    %j - Day of year	
+    %U - Week number of the year
+    %w - Weekday as a decimal number
+    %W - Week number of the year
+
+
+Contact
+=======
+https://bitbucket.org/tebeka/strftime
+    
+License
+=======
+MIT (see `LICENSE.txt`_)
+
+.. _`LICENSE.txt`: https://bitbucket.org/tebeka/strftime/src/tip/LICENSE.txt