Python Script to search by Date

Discussion in 'Python' started by gamersunit@gmail.com, Nov 26, 2008.

  1. Guest

    What I'm trying to do is decompress a bunch of files depending on the
    date/time specified.

    So, we have full backups created every Sunday and transaction backups
    every hour afterwards.

    I have everything compressed at an hourly basis.

    Now, what I'm trying to create is a way to specify a date and time
    where it would automatically decompress the files.

    The main part that I'm trying to figure out is how would I search the
    date and time, and it would the files from the sunday prior, to the
    specified date?

    Anyone have an idea?
    , Nov 26, 2008
    #1
    1. Advertising

  2. On Tue, 2008-11-25 at 16:10 -0800, wrote:
    > What I'm trying to do is decompress a bunch of files depending on the
    > date/time specified.
    >
    > So, we have full backups created every Sunday and transaction backups
    > every hour afterwards.
    >
    > I have everything compressed at an hourly basis.
    >
    > Now, what I'm trying to create is a way to specify a date and time
    > where it would automatically decompress the files.
    >
    > The main part that I'm trying to figure out is how would I search the
    > date and time, and it would the files from the sunday prior, to the
    > specified date?
    >
    > Anyone have an idea?
    > --


    Use os.path.getmtime(filename) to get the modification time of a file
    (see the documentation).

    -a
    Albert Hopkins, Nov 26, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    588
    Matthew Speed
    Nov 8, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,229
    Michael Borgwardt
    May 30, 2004
  3. Matt
    Replies:
    2
    Views:
    504
    Pete Becker
    Nov 8, 2003
  4. Matt
    Replies:
    3
    Views:
    707
    Richard Heathfield
    Nov 8, 2003
  5. Abby Lee
    Replies:
    5
    Views:
    378
    Abby Lee
    Aug 2, 2004
Loading...

Share This Page