Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #296

Re: Reading Date Stamp of a file

From Roger Darlington <rogerarm@freeuk.com>
Newsgroups comp.sys.acorn.programmer
Subject Re: Reading Date Stamp of a file
Date 2011-05-13 11:20 +0100
Organization home
Message-ID <5ab1afd251.rogerarm@rogerarm.freeuk.com> (permalink)
References <416aadd251.rogerarm@rogerarm.freeuk.com>

Show all headers | View raw


On 13 May 2011, Roger Darlington  wrote:

> In BBC BASIC/RISC OS there is always more than one command to perform
> any one function.

> Could the readers tell me which is the SIMPLEST command to use to read
> the date stamp of a file within a program, and in what format is the
> date stamp returned?  I don't need the time stamp, just the date. (I
> realise I may get both date and time anyway).


Actually, thinking more about it, I need it to compare the date/time 
stamp of two files within the program, and if one is newer than the 
other, then I want to perform some actions (which don't involve 
copying).

If there is a command that might return the date/time stamp as a 
single number (rather than as 17-Jan-2010) then I wont need to convert 
17-Jan-2010 to some single number.

-- 

Cheers
Roger
"An invisibility cloak that works at optical wavelengths is nowhere in 
sight"

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-13 10:55 +0100
  Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-13 11:20 +0100
    Re: Reading Date Stamp of a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-14 03:10 +0200
  Re: Reading Date Stamp of a file Graham Pickles <graham@durain.demon.co.uk> - 2011-05-13 11:39 +0100
    Re: Reading Date Stamp of a file jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-05-14 00:35 +0100
    Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-18 13:44 +0100
      Re: Reading Date Stamp of a file Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-05-18 15:23 +0100
        Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-19 09:30 +0100
          Re: Reading Date Stamp of a file druck <news@druck.org.uk> - 2011-05-19 21:14 +0100

csiph-web