Skip to content
Browse files

README update

  • Loading branch information...
1 parent ba2f8aa commit 491825d175bd0ce82c5e487681051661eae82e73 @khebbie committed Aug 7, 2011
Showing with 22 additions and 12 deletions.
  1. +22 −12 README
View
34 README
@@ -1,23 +1,33 @@
Prototime is an extension to DateTime for .Net intented for making formating easier.
The way it works is that you give an example of how you want the date formatted, instead of the weird cult of 'dd MMM Hmss'
-So instead of 'd MMM yyyy' you would write this example '15 Jun 2008' and get a string formatted accordingly.
+So instead of 'd MMM yyyy' you would write this example '31 Jun 2008' and get a string formatted accordingly.
-
-This is still software in alpha
+This is still software in alpha, though dates are pretty much done
Right now the following examples works (probably some combinations of them works as well)
-Jan
-Apr 01
-Mar 01, 1999
-Mar 1, 1999
-01 Mar 1999
-01 March 1999
-01. March 1999
+| January | September |
+| Jan | Sep |
+| Jan 1 | Sep 8 |
+| Jan 31 | Sep 08 |
+| Jan 31 | Sep 08 |
+| Jan 1, 1999 | Sep 8, 2011 |
+| Monday | Thursday |
+| Tue, Jan 1 | Thu, Sep 8 |
+| Tuesday, January 1, 1999 | Thursday, September 8, 2011 |
+| 01/1999 | 09/2011 |
+| 01/31 | 09/08 |
+| 12/99 | 09/11 |
+| 01/31/1999 | 09/08/2011 |
+| 12/31/99 | 09/08/11 |
+| 31/12 | 08/09 |
+| 31/12/99 | 08/09/11 |
+| 31-Jan-1999 | 08-Sep-2011 |
+| 1999-12-31 | 2011-09-08 |
+| DOB: 12-31-1999 | DOB: 09-08-2011 |
-I haven't started working on two digit year and month representation.
-For that to work each should be represented by the highest number valid for it, ie. 31/12/99 would be "December 31. 1999"
+Since there are many many things represented by two digits (month, day, year, time), each should be represented by the highest number valid for it, ie. 31/12/99 would be "December 31. 1999"
I have not started work on timestamps at all...
Prototime is inspired by Stamp for Ruby

0 comments on commit 491825d

Please sign in to comment.
Something went wrong with that request. Please try again.