handle time and layout in Dates

Idea

 

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)

 

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:

Date+*display:

...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.

 

 

Well that was easier than i thought. An additional bit we'll probably want at some point is to store everything as numbers, and use some Date-chunk specific views (maybe when these are Wagneerable) to show them as Mon, Tue; 01, 02; etc.


Lots of good stuff.

 

What is *display? Is it not a setting? Wouldn't we want a way to change the default display of a date card?

 

When I get to it I'll probably delete that card and either just spell it out in the solution or put it on a different wagn. I don't think we want star cards on wagn.org that don't actually have a meaning yet.

  --Ethan McCutchen.....Mon May 10 14:33:00 -0700 2010


Hunh, had been thinking of it as just Wagneering, but we don't want to force people to include everywhere. So yeah, i guess it's a setting, for a Basic card that's treated like a format for the date (or if a Pointer, the card pointed to is such a card).

  --John Abbe.....Mon May 10 15:10:16 -0700 2010


Hunh, had been thinking of it as just Wagneering, but we don't want to force people to include everywhere. So yeah, i guess it's a setting, for a Basic card that's the Date format; or if a Pointer, the card pointed to is such a card. (Switched from PlainText so that people can use bold, italic.)

  --John Abbe.....Mon May 10 15:14:46 -0700 2010

+relevant user stories