bugGNU Wget - Bugs: bug #20379, Allow time-stamping by arbitrary...

 
 

bug #20379: Allow time-stamping by arbitrary date

Submitted by:  Micah Cowan <micahcowan>
Submitted on:  Fri 06 Jul 2007 10:58:33 PM UTC  
 
Category: Feature RequestSeverity: 2 - Minor
Priority: 5 - NormalStatus: Confirmed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: NoneOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: 1.15Regression: None
Work Required: 1 - DaysPatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 16 Aug 2010 09:26:42 AM UTC, comment #8:

Added documentation.

(file #21233)

Magne OEstlyngen <skybert>
Mon 16 Aug 2010 09:07:17 AM UTC, comment #7:

This patch implements --newer-than/--older-than. Using these without setting -N is treated as an error.

The patch is against plain 1.12, but applies cleanly to 1.12-2416. It requires gnulib getdate module to be added to the source tree, which I couldn't get to work with 2416.

(file #21232)

Magne OEstlyngen <skybert>
Fri 13 Aug 2010 02:50:08 PM UTC, comment #6:

I want this, and will be implementing it if no-one else has done so already. (Nothing in 1.12-2416 seems to indicate so).

I'd say two options are needed/wanted:

--newer-than=TIME
--older-than=TIME

Download only files newer (or older) than TIME. Option controls download only, so test is done before file-exists-locally test.

Use both and you'll specify a range.

gnulib get_date() seems ok (accepts iso-time and more)

Regarding -N, I'd say these options should either require -N to be set, or set it automatically.

Magne OEstlyngen <skybert>
Mon 09 Mar 2009 04:05:41 PM UTC, comment #5:

Again, you should be looking at "info coreutils date", not "man getdate".

Micah Cowan <micahcowan>
Mon 09 Mar 2009 04:05:12 PM UTC, comment #4:

Nope, I'm talking about gnulib's get_date, not glibc's getdate.

Micah Cowan <micahcowan>
Sun 08 Mar 2009 06:32:17 PM UTC, comment #3:

Ya i looked into the man before itself And

MAN says
getdate() uses the formats found in the file whose full pathname is given in the environment variable DATEMSK.

So anyway we need to discuss the various formats that need to be
supported anyway. Is there anyway to make it accept based on the locale format? Say in India we use 12/2/2008 for 12th Feb 2008 but it means like 2nd Dec 2008 in someother locale ( I am bit confused in this stuff sorry if i am wrong)

And is there any way to make it automatically match any of the date
formats available without that DATEMSK file ( or else we may constrain that to only few of the specific formats

vinoth kumar <vinocit>
Sun 08 Mar 2009 07:50:27 AM UTC, comment #2:

I think we'd use gnulib's get_date, which is what the GNU coreutils date command use. See what "info coreutils date" shows you in terms of variety of accepted formats. :)

Micah Cowan <micahcowan>
Sat 07 Mar 2009 04:12:33 PM UTC, comment #1:

The time formats to be accepted?
Should it accept this only of -N specified?
Should it accept this even in the absence of local file ?
I think there is still some discussions to be done in this regard

vinoth kumar <vinocit>
Fri 06 Jul 2007 10:58:33 PM UTC, original submission:

For example, wget --if-modified-after DATE URL.

Micah Cowan <micahcowan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #21233:  wget-timestamp2.patch added by skybert (8KiB - text/x-patch - Updated patch.)
file #21232:  wget-timestamp.patch added by skybert (6KiB - text/x-patch - Patch implementing --newer-than / --older-than)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by skybert (Posted a comment)
  • -unavailable- added by vinocit (Posted a comment)
  • -unavailable- added by micahcowan (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Aug 2010 09:26:42 AM UTCskybertAttached File-=>Added wget-timestamp2.patch, #21233
    Mon 16 Aug 2010 09:07:17 AM UTCskybertAttached File-=>Added wget-timestamp.patch, #21232
    Fri 20 Jul 2007 04:56:47 AM UTCmicahcowanPlanned ReleaseNone=>1.15

    Back to the top


    Powered by Savane 3.1-cleanup1