Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DateTime toInvariant: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{HelpFiles}}
{{HelpFiles}}


=== DateTime_toInvariant<br/> ===
==== convertToString ====


Convert datetime array to string.
Converts the value of an expression to a string value.


=== Syntax<br/> ===
'''Syntax'''


DateTime_toInvariant(date)
convertToString(expression)


=== Arguments ===
'''Arguments'''


date: Is array which is datetime to be convert
''expression'': Is an expression of the type bool, string or number.


=== Return type ===
'''Return type'''


string datetime format is yyyy-MM-dd hh:mm:ss
string


=== Examples ===
'''Examples'''


<source lang="javascript">
''string b = convertToString(23);''
array date = getDateTime();
string dt = DateTime_toInvariant(date);
print(dt);
//2015-11-16 01:25:48
</source>


__NOTOC__
''print("I'm " + b + " years old.");''
 
''//I'm 23 years old.''
 
'''Availability'''
 
Version 4.8 __NOTOC__
<!-- imported from file: 394.htm-->

Revision as of 01:59, 16 November 2015


convertToString

Converts the value of an expression to a string value.

Syntax

convertToString(expression)

Arguments

expression: Is an expression of the type bool, string or number.

Return type

string

Examples

string b = convertToString(23);

print("I'm " + b + " years old.");

//I'm 23 years old.

Availability

Version 4.8