NAME


Blosxom Plug-in: timestamp


SYNOPSIS

Purpose: Provides timestamps for each story for inclusion in its display.

$timestamp::stamp
Timestamp

$timestamp::jdn
Timestamp as a Julian day number


INSTALLATION & CONFIGURATION

Drop the timestamp plug-in into your Blosxom plugins directory and configure the runtime variables, below.


VERSION

0+2i

First test release


AUTHOR

Taper Wickel <taper@waxwolf.com>, http://www.waxwolf.com/blosxom.cgi


BUGS

None known. Address bug reports and comments to me.


CUSTOMIZATION

Configuration Variables

@monthname, @monthabbr, @downame, and @dowabbr
contain the long and short forms of the months and says of the week.

$epoch
holds the Julian day number that corresponds to the zero point of your system's time() implementation. On (most?) Unix systems, including MacOS X, this is 12:00:00 1/1/1970; on MacOS classic it is 1/1/1904, which would be 2416480.5 . Check your system's implementation. If your system's perl port has a different date, http://fourmilab.ch/documents/calendar/ has a converter.

If you'd like the modified Julian day, you can set $epoch to 40587.

$precision
sets the number of decimal digits to display in $timestamp::jdn .

CSS classes

timestamp-stamp
The timestamp

timestamp-jdn
The JDN number

Flavour-style files

The format of the timestamp may be overridden by creating a file (similar to Blosxom's flavour files) called timestamp.stamp.flavour . See the __DATA__ section for the default. Only timestamp-specific variables will work. The variables attempt to mimic blosxom's variables for date.flavour :

$hr
$hr12
$hr24
zero-padded

$ampm
$min
zero-padded

$sec
zero-padded

$ampm
in caps

$da
$day
zero-padded

$mo
short name

$month
long name

$mo_num
number

$mon
zero-padded

$yr
four digits

$yr2
two digits

$dw
short day of week

$weekday
long day of week


SEE ALSO

Blosxom Plugin Docs: http://www.raelity.org/apps/blosxom/plugin.shtml

Julian Day Numbers and Date Algorithms: http://home.capecod.net/~pbaum/date/back.htm#JDN


LICENSE

This Blosxom Plug-in Copyright 2003, Taper Wickel

(This license is the same as Blosxom's)

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 restric- tion, including without limitation the rights to use, copy, modify, merge, publish, dis- tribute, 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.