handle time and layout in Dates
Idea
+issues
Date cards are anemic. Eventually we want Wagn to understand time in a fairly deep way, which could be a Big Design thing, but small steps would answer some immediate needs, and help us think better about later major expansion.
Blogging needs would be handled with:
- Date cards specifying time as well as date (wouldn't even need to be able to edit it, as blogging would only make use of this via exposed +*create and +*update cards)
- Flexibility in how much, and what layout of the Date's information to display (optional for blogging if a decent default is selected, but it would mess up other uses a lot of uses of Date to always show the time)
+solution
Update the editor to something that handles times, while remaining simple if all you care about is day.
Store the time/date in some standard way that allows going at least ~100+ years in the past (handling all living people's birth dates), and well into the future.
Conveniently, we have a formatting system, so let's expose the chunks in cards and use that!
- Date+*year = 2010, 2011, ... (Number)
- Date+*month = January, February ... (Phrase, and optionally via setting: Jan, Feb, ...)
- Date+*day =1, 2, 3, ... (Number, or Phrase and optionally via setting: 01, 02, ...)
- Date+*dayname = Monday, Tuesday, ... (Phrase, and optionally via setting: Mon, Tue, ...)
- Date+*hour = 12, 1, 2, ..., 11 (Phrase and optionally via setting: 0, 1, ..., 23)
- Date+*ampm = AM, PM (wish we had calculation cards to mess with case on these; could do a setting :-P )
- Date+*minute = 01, 02, ..., 59
- Date+*second = 01, 02, ..., 59
In English, something like:
...resulting in: Monday, May 10, 1:49 PM 2010
Note that if it's Basic, Wagn should treat it like a form (i.e., show the markup even when viewing as content/open/closed). If it's a Pointer, Wagn should treat cards in the Pointer like they're forms.
+discussed in support tickets
+relevant user stories