DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Timestamps - Return Timestamps For A List Of Files

  • submit to reddit
        // Note that this doesn't reutrn the file names, 
// just the timestamps.

; If we return only the time, how will they differentiate the dates
; if we're given a result from files-for-date-range?
timestamps: func [
    /only "return time only, no date info"
    /local stamp
    collect time [
        foreach file files [
            stamp: modified? path/:file
            time: either only [stamp/time] [stamp]