Lasso Soft Inc. > Home

[Server_Time]

[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
  • Parameters
[Server_Time]

[Server_Time: -Short]

[Server_Time: -Long]
Optional Parameters
-Short Returns the time with hours and minutes 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].
Result:
<p>The current time is 13:28:34 PM.
Tag Link [Server_Time] Category Date
Type Substitution Data Source Any
Support Preferred Version 2.5
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x,LDML25

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft