Blog Tutorial:
General
Blog Posts
User Comments
Archives
Categories
User Profile
Using Skins
Time And Date
Conditionals
Error Messages
Blog Software
Web Hosting
Tutorials Index
|
Blog Software Tutorial - Time and Date
These tags can be used on any blog page and display a date, time or
calendar in the format of your choice.
Date Tag
The date tag and optional attributes are listed here.
<BL_Date> |
format | |
| w | day of week (Monday, Tuesday...) |
| m | name of month (January, February...) |
| n | month number (01-12) |
| d | day of the month number (01-31) |
| t | day of the month number (1-31 - no leading 0) |
| f | verbose day of month (1st, 2nd...) |
| y | year (four digits) |
| s | two digit version of year (00-99) |
month | month to be shown (absolute [1-12] or relative value) |
day | day of the month (absolute [1-31] or relative value) |
year | year to be shown (absolute or relative value) |
|
When used without any attributes, the current date is shown in the default format ("w, m f y").
To specify a relative value for month, day or year, use - to go back in time
and + to advance. For example <BL_Date month="-1"> would show the date
for the previous month.
Additional date related blog tags specific to posts, comments and profiles are also available. These are covered in the relevant tutorial sections.
Time Tag
The time tag and optional attributes are listed below.
<BL_Time> |
format | |
| h | hour (01-23) |
| l | hour 1-12 |
| m | minute 00-59 |
| s | seconds 00-59 |
| p | AM/PM |
hour | hour to be shown (0-23) |
minute | minute to be shown (00-59) |
second | second to be shown (00-59) |
|
When used without any attributes, the current time is shown in the default format ("h:m:s").
Additional time related blog tags specific to posts and comments are available. These are covered in the relevant tutorial sections.
Calendar Tag
This tag will display a calendar, dates with posts will have links to posts for that date.
<BL_Calendar> |
month | month for calendar (absolute [1-12] of relative value) |
year | year for calendar (absolute of relative value) |
header | calendar table header color |
days | table color for day of week row |
frame | table frame color |
body | table body color for days |
font | font color |
link | specify link color for links to posts |
underline | underline links (default=Yes) |
|
If no attributes are specified, a calendar for the current month will be shown.
To specify a relative value for month or year, use - to go back in time
and + to advance. For example <BL_Calendar month="-1"> would show a calendar
for the previous month.
|