LassoScript Utility
Basics Browse Detail

[Server_Time]

Tag Link [Server_Time] Category Date
Type Substitution Source Available No
Support Preferred Version 2.5
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5

Description

[Server_Time] returns the current time in a format suitable for display or logging.

Accepts an optional parameter which determines the output format for the time.

-Short 11:34 PM
-Long 11:34:56 PM (default)

-Extended can also be used as an alias for -Long.

Note: The [Date] tag should be used to generate a date/time string for use as an input to the [Date_...] tag. The [Date_Format] tag can be used to generate times in any required format for display, database storage, or logging.

Syntax

[Server_Time]

[Server_Time-Short]

[Server_Time-Long]

Parameters

Optional Parameters
-Short Returns the time with hours and minutes in 24-hour format.
-Long Returns the time with hours, minutes, and seconds in 24 hour format.

Examples

To display the current time:

Use the [Server_Time] tag. The following example displays the current time to a site visitor.

<p>The current time is [Server_Time-Long].

<p>The current time is 13:28:34 PM.