Core Function FileCreationTime

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 19: Line 19:
 
=== Return Value ===
 
=== Return Value ===
  
Success: Returns true.
+
Success: Returns array of the time.
  
Failure: Returns false.
+
Failure: Returns empty array.
  
 
=== Remarks ===
 
=== Remarks ===

Latest revision as of 12:38, 14 June 2015

FileCreationTime( <file>, <flag> )

Contents

Description

Get the creation time of a file.

Parameters

file

File name.

flag

If the flag is above zero the time will be in UTC.

Return Value

Success: Returns array of the time.

Failure: Returns empty array.

Remarks

None.

Example

List ($MSec, $Sec, $Min, $Hour, $WDay, $MDay, $Mon, $YDay, $Year, $Ticks) = FileCreationTime("sputnik.exe");
println("MSec: " . $MSec); 
println("Sec: " . $Sec); 
println("Min: " . $Min); 
println("Hour: " . $Hour); 
println("WDay: " . $WDay); 
println("MDay: " . $MDay); 
println("Mon: " . $Mon); 
println("YDay: " . $YDay); 
println("Year: " . $Year); 
println("Ticks: " . $Ticks);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox