Last modified on 31 October 2012, at 14:03

REBOL Programming/modified?

USAGE:Edit

MODIFIED? target 

DESCRIPTION:Edit

Returns the last modified date of a file or URL.

MODIFIED? is a function value.

ARGUMENTS:Edit

  • target -- (Type: file url)

(SPECIAL ATTRIBUTES)Edit

  • catch

SOURCE CODEEdit

modified?: func [
    "Returns the last modified date of a file or URL." 
    [catch] 
    target [file! url!] 
    /local info
][
    info: throw-on-error [info? target] 
    either none? info [none] [info/date]
]