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 |
[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.
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.
[Server_Time]
[Server_Time:
[Server_Time:
Optional Parameters | |
---|---|
-Short | Returns the time with hours and minutes in 24 |
-Long | Returns the time with hours, minutes, and seconds in 24 hour format. |
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:
<p>The current time is 13:28:34 PM.