|
"A truly elegant thinking environment" -- David Fultz
"The software I feel like I've been waiting 15 years to have"" -- Doug Miller, CTO, iRobotics
Getting started
Tinderbox Web log
Dear Tinderbox
Things you can do
Why "Tinderbox"?
Who designed Tinderbox?
For making notes
Sorting things out
FAQ: making notes
For weblogs
FAQ: weblogs
Pages from parts
weblogs and dates
free weblog templates
Mastering Tinderbox
understanding attributes
export templates
Try Tinderbox today!
Tinderbox training
site licenses
Download Tinderbox now!
"No wonder I haven't launched Word in days." -- Jill Walker, Dept of Humanistic Informatics, University of Bergen, Norway
Subscribe!
Keep in touch with Tinderbox! Moderated,
concise, and timely; we never share your email address.
|
|
Dates and the Web
Tinderbox automatically keeps track of two dates: Created (the date and time when a note was first made), and Modified (the date and time when the note was most recently changed). You can create your own date attributes, too; for example, Published might be the date when a note was first added to the public version of your Web site.
Agents can use dates to good effect. A container for weblog items, for example, might automatically timestamp a note whenever it's added, whether freshly-created or moved from another place. Or an agent could collect all news items whose ReleaseDate has already arrived, but not items whose ReleaseDate is still in the future.
Many weblog writers want to display dates associated with their notes; Tinderbox offers great flexibility in date formatting. To include any date, simply add the placeholder ^Get() to your template: ^Get(modified)^
To format dates, add a second argument to ^Get: ^Get(modified,"format-string" )^
where "format-string" describes the way you want the date to appear.
Format strings let you present dates and times in exactly the way you wish. They can appear in your language or in English, in whatever style you prefer.
format codes
| format string | result |
| L | Monday, March 25, 2002 (local time, in long format, using the system format settings |
| l | 3-25-2002 (local time, in short format, using the system format settings |
| d | 25 (day of month) |
| m | 3 (number of month) |
| M | Mar (abbreviation of month) |
| MM | March (name of month) |
| w | Mon (abbreviation of weekday) |
| W | Monday (weekday) |
| y | 2002 (year) |
| t | 2:32 pm (time, in local format) |
| * | RFC-822 internet formatted time |
| \ | includes the following character literally, even if it has a special meaning |
| any other character | include the character |
|