GetFullTime

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Note: This function is deprecated. Its use is discouraged as it may be removed in a future update. It is recommended that Squirrel's system library function, date() be used instead.

This function returns a string containing the current date and time.

Syntax

  1. string GetFullTime()

Arguments

  • none

Example

This example tells the player what the current date and time is, when they type '/date'

  1.  
  2. function onClientCommand( cmd, text )
  3. {
  4. if ( cmd == "date" )
  5. {
  6. Message( "Current Date and Time: " + GetFullTime() );
  7. }
  8. return 1;
  9. }
  10.  

Notes

The function Message and call onClientCommand were used in this example. More info about them in corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox