docs.roxen.com
main | demo | docs
download | community | pike
2000 Roxen Internet Software
Suggestions, Comments or Complaints
manuals@roxen.com

DocsRoxen2.0Web Site Creator ManualInformation tags


  • <accessed>
  • <countdown>
  • <date>
  • <help>
  • <modified>
  • <number>
  • <roxen>
  • <user>
  • <date/>

    Inserts the time and date. Does not require attributes.

    Attributes

    unix-time
    unix-time=number
    Display this time instead of the current. This attribute uses the specified Unix 'time_t' time as the starting time, (which is 01:00, January the 1st, 1970) instead of the current time. This is mostly useful when the <date> tag is used from a Pike-script or Roxen module.
    <date unix-time='1'/>
    01:00, January the 1st, 1970

    <date unix-time='120'/>
    01:02, January the 1st, 1970

    years
    years=number
    Add this number of years to the result.
    <date date='' years='2' type='discordian'/>
    Pungenday, the 23rd day of Bureaucracy

    months
    months=number
    Add this number of months to the result.
    <date date='' months='2' type='discordian'/>
    Pungenday, the 10th day of The Aftermath

    weeks
    weeks=number
    Add this number of weeks to the result.
    <date date='' weeks='2' type='discordian'/>
    Sweetmorn, the 36th day of Bureaucracy

    days
    days=number
    Add this number of days to the result.
    <date date='' days='2' type='discordian'/>
    Prickle-Prickle, the 24th day of Bureaucracy

    hours
    hours=number
    Add this number of hours to the result.
    <date time='' hours='2' type='iso'/>
    15:14:11

    beats
    beats=number
    Add this number of beats to the result.
    <date time='' beats='2'/>
    13:17

    minutes
    minutes=number
    Add this number of minutes to the result.
    <date time='' minutes='2'/>
    13:16

    seconds
    seconds=number
    Add this number of seconds to the result.
    <date time='' seconds='2'/>
    13:14

    adjust
    adjust=number
    Add this number of seconds to the result.
    brief
    Show in brief format.
    <date brief=''/>
    today, 13:14

    time
    Show only time.
    <date time=''/>
    13:14

    date
    Show only date.
    <date date=''/>
    August the 30th in the year of 2000

    type
    type={string, ordered, iso, discordian, stardate, number}
    Defines in which format the date should be displayed in. Discordian and stardate only make a difference when not using part. Note that type=stardate has a separate companion attribute, prec, which sets the precision.
    type=discordian
    <date date='' type='discordian'/> 
    Boomtime, the 22nd day of Bureaucracy
    type=iso
    <date date='' type='iso'/>
    2000-08-30
    type=number
    <date date='' type='number'/>
    August the 30th in the year of 2000
    type=ordered
    <date date='' type='ordered'/>
    August the 30th in the year of 2000
    type=stardate
    <date date='' type='stardate'/>
    36766.4
    type=string
    <date date='' type='string'/>
    August the 30th in the year of 2000

    part
    part={year, month, day, wday, date, mday, hour, minute, second, yday, beat, week, seconds}
    Defines which part of the date should be displayed. Day and wday is the same. Date and mday is the same. Yday is the day number of the year. Seconds is unix time type. Only the types string, number and ordered applies when the part attribute is used.
    part=year Display the year.
    <date part='year' type='number'/>
    2000
    part=month Display the month.
    <date part='month' type='ordered'/>
    8th
    part=day Display the weekday, starting with Sunday.
    <date part='day' type='ordered'/>
    4th
    part=wday Display the weekday. Same as 'day'.
    <date part='wday' type='string'/>
    Wednesday
    part=date Display the day of this month.
    <date part='date' type='ordered'/>
    30th
    part=mday Display the number of days since the last full month.
    <date part='mday' type='number'/>
    30
    part=hour Display the numbers of hours since midnight.
    <date part='hour' type='ordered'/>
    13th
    part=minute Display the numbers of minutes since the last full hour.
    <date part='minute' type='number'/>
    14
    part=second Display the numbers of seconds since the last full minute.
    <date part='second' type='string'/>
    eleven
    part=yday Display the number of days since the first of January.
    <date part='yday' type='ordered'/>
    242nd
    part=beat Display the number of beats since midnight Central European Time(CET). There is a total of 1000 beats per day. The beats system was designed by Swatch as a means for a universal time, without time zones and day/night changes.
    <date part='beat' type='number'/>
    @509
    part=week Display the number of the current week.
    <date part='week' type='number'/>
    35
    part=seconds Display the total number of seconds this year.
    <date part='seconds' type='number'/>
    967634051

    lang
    lang=langcode
    Defines in what language a string will be presented in. Used together with type=string and the part attribute to get written dates in the specified language.
     <date part='day' type='string' lang='de'>
    Mittwoch

    case
    case={upper, lower, capitalize}
    Changes the case of the output to upper, lower or capitalize.
    <date date='' lang='client.language' case='upper'/>
    AUGUST THE 30TH IN THE YEAR OF 2000

    prec
    prec=number
    The number of decimals in the stardate.