[TOC] [Prev] [Next] [Bottom]



<@CURRENTDATE>, <@CURRENTTIME>,
<@CURRENTTIMESTAMP>

Syntax

<@CURRENTDATE [FORMAT=format] [ENCODING=encoding]>

<@CURRENTTIME [FORMAT=format] [ENCODING=encoding]>

<@CURRENTTIMESTAMP [FORMAT=format] [ENCODING=encoding]>

Description

Returns the current date, time, or timestamp (date and time concatenated). If FORMAT is specified, it is used to format the value; otherwise, the default date and time formats specified by the date and time configuration variables are used.

For more information, see "Date and Time Formatting Codes".

Codes for the elements of FORMAT are shown in the description of the date and time formatting configuration variables. Date and time values returned by these meta tags reflect the setting of the clock on the computer where Tango Server is installed.

Examples

Today is <@CURRENTDATE>

This prints a message that includes the current date in the format specified by the default date format.

It is now <@CURRENTTIME FORMAT="datetime:%H:%M:%S">

This prints a message that includes the current time in 24-hour format.

It is day <@CURRENTDATE FORMAT="%j"> of <@CURRENTDATE FORMAT="%Y">

This prints a message that includes the current day and year.

See Also

dateFormat, timeFormat, timestampFormat
Encoding Attribute
<@FORMAT>
Format Attribute



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.