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


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

Re: Reading Date Stamp of a file

Subject Re: Reading Date Stamp of a file
Newsgroups comp.sys.acorn.programmer
From Graham Pickles <graham@durain.demon.co.uk>
Message-ID <e07bb1d251.graham@durain.demon.co.uk> (permalink)
References <416aadd251.rogerarm@rogerarm.freeuk.com>
Date 2011-05-13 11:39 +0100

Show all headers | View raw


In message <416aadd251.rogerarm@rogerarm.freeuk.com>
          Roger Darlington <rogerarm@freeuk.com> 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).

How about


DIM stamp% 5,date% 32
REM next line is up to you...
filespec$="HostFS::HardDisc4.$.Folders"
SYS "XOS_File",17,filespec$ TO found%,,load%,exec%
stamp%!0=exec%:stamp%?4=load%
SYS "OS_ConvertStandardDateAndTime",stamp%,date%,32 TO date$
PRINT RIGHT$(date$,11)

Regards,

-- 
Graham Pickles
www.whitbymuseum.org.uk     Whitby Museum
Those who get too big for their britches will be exposed in the end

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