Article View: comp.os.msdos.misc
Article #3936Re: Help with date and Time
From: Raj Rijhwani
Date: Thu, 23 Nov 1995 00:00
Date: Thu, 23 Nov 1995 00:00
24 lines
2222 bytes
2222 bytes
In article <DIHvy2.KH2@online.tmx.com.au> joan_c@adc.com.au "Joan Colley" writes:
> John Savage <koala@sydney.dialix.com.au> wrote:
> >djr@mphd1.novell.ac.uk (Dominic Robinson) writes:
> >>How do I read the creation time of a number of .txt files into another
> >>file to the NEAREST SECOND. /date only gives to the nearest minute??
> >
> >Get one of the Un*x-style list utilities from SimTel or Garbo. "ls" is
> >analogous to the MSDOS "DIR" command, but ls -l gives time of creation
> >to the nearest second. You'll probably find any of these should do ...
> >
>
> I rather suspect DOS is less sophisticated than Unix. If Dominic really
> wants the create time he is probably out of luck.
You are quite correct. The only time/date construct recorded in an MS-DOS
directory entry is the modification t&d. What's more, it's only accurate
to 2 second intervals, due to the format of the stored time and date in
16 bits.
--
Gulraj Rijhwani | Courtfields Limited
| Chessington, Surrey, UK
gdr@courtfld.demon.co.uk | Tel: 0181 255 4667 Fax: 0181 287 8381
- Join CommUnity - Campaigning to maintain the freedom of cyberspace in the UK -
Technical Details
Message-ID:
<817165901snz@courtfld.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<1995Nov13.134114.6481@leeds.ac.uk> <48uuk6$h28$1@sydney.DIALix.oz.au> <DIHvy2.KH2@online.tmx.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d683,2303e8f8ee305490 X-Google-Attributes: gid10d683,public X-Google-Thread: f53ba,2303e8f8ee305490 X-Google-Attributes: gidf53ba,public X-Google-Thread: 1674b9,2303e8f8ee305490 X-Google-Attributes: gid1674b9,public X-Google-Thread: 111d31,2303e8f8ee305490 X-Google-Attributes: gid111d31,public X-Google-Thread: f71eb,53d0f41b00b4b338 X-Google-Attributes: gidf71eb,public From: Raj Rijhwani <gdr@courtfld.demon.co.uk> Subject: Re: Help with date and Time Date: 1995/11/23 Message-ID: <817165901snz@courtfld.demon.co.uk> X-Deja-AN: 119995512 x-nntp-posting-host: courtfld.demon.co.uk references: <1995Nov13.134114.6481@leeds.ac.uk> <48uuk6$h28$1@sydney.DIALix.oz.au> <DIHvy2.KH2@online.tmx.com.au> organization: Organization? You gotta be kidding... Chaos! reply-to: gdr@courtfld.demon.co.uk newsgroups: comp.os.msdos.misc,comp.binaries.ibm.pc.wanted,comp.archives.msdos.d,comp.sys.ibm.pc.misc,aus.computers.ibm-pc