Blosxom Plug-in: timestamp
Purpose: Provides timestamps for each story for inclusion in its display.
Drop the timestamp plug-in into your Blosxom plugins directory and configure the runtime variables, below.
0+2i
First test release
Taper Wickel <taper@waxwolf.com>, http://www.waxwolf.com/blosxom.cgi
None known. Address bug reports and comments to me.
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.
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 :
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
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.