Windows Vista Forums

Difference between Now and the Timestamp on a File

  1. #1


    gimme_this_gimme_that Guest

    Difference between Now and the Timestamp on a File

    If someone could provide a few tips on computing the difference
    between now and the timestamp on a file that's be great.

    I'm writing a VBScript that sends an email if a file is older than
    hour old.

    Thanks.

      My System SpecsSystem Spec

  2.   


  3. #2


    Jeff C Guest

    RE: Difference between Now and the Timestamp on a File


    --
    Jeff C
    Live Well .. Be Happy In All You Do


    "gimme_this_gimme_that@xxxxxx" wrote:

    > If someone could provide a few tips on computing the difference
    > between now and the timestamp on a file that's be great.
    >
    > I'm writing a VBScript that sends an email if a file is older than
    > hour old.
    >
    > Thanks.
    >
    Review DateDiff:

    http://www.devguru.com/Technologies/.../datediff.html

      My System SpecsSystem Spec

  4. #3


    Python42 Guest

    Re: Difference between Now and the Timestamp on a File

    filename = "whatever"
    diffInMinutes = datediff("N",fso.GetFile(filename).DateLastModified,Now)

    returns the time in minutes between Now and the last file modification.

    "Jeff C" <JeffC@xxxxxx> wrote in message
    news:56875826-203F-4582-ADB1-D674283B8A00@xxxxxx

    >
    > --
    > Jeff C
    > Live Well .. Be Happy In All You Do
    >
    >
    > "gimme_this_gimme_that@xxxxxx" wrote:
    >

    >> If someone could provide a few tips on computing the difference
    >> between now and the timestamp on a file that's be great.
    >>
    >> I'm writing a VBScript that sends an email if a file is older than
    >> hour old.
    >>
    >> Thanks.
    >>
    >
    > Review DateDiff:
    >
    > http://www.devguru.com/Technologies/.../datediff.html


      My System SpecsSystem Spec


Difference between Now and the Timestamp on a File
Similar Threads
Thread Forum
FTP timestamp and offset Problem Vista General
> File Permission Ownership difference b/w FireFox and Vista Vista General
File Permission Ownership difference b/w FireFox and Vista Browsers & Mail
Timestamp question General Discussion
DNS timestamp conversion VB Script