REBOL Programming/modified?

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

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 CODE[edit]

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]
]