/*
    Scriptol example
    Date and time
    - current date and time
    - date and time of last modification of a file
    Requirement: Scriptol PHP or Scriptol C++ Compiler.
*/

include "libphp.sol"

print "Example of date and time"
print "Format ISO 8601 (PHP 5/Scriptol C++)"

real d = time()

print "Current date and time:", date("c", d)

d = filetime("exdate.sol")

text filedate = date("c", d)

print "Date of this file:", filedate[ .. 9]