Jump to content

Rebol Programming/modified?

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
MODIFIED? target 

DESCRIPTION:

[edit | edit source]

Returns the last modified date of a file or URL.

MODIFIED? is a function value.

ARGUMENTS:

[edit | edit source]
  • target -- (Type: file url)

(SPECIAL ATTRIBUTES)

[edit | edit source]
  • catch

SOURCE CODE

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