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

 
 

bug #20379: Allow time-stamping by arbitrary date

Submitter:  Micah Cowan <micahcowan>
Submitted:  Fri 06 Jul 2007 10:58:33 PM UTC
   
 
Category:  Feature Request Severity:  2 - Minor
Priority:  5 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Operating System:  None
Reproducibility:  None Fixed Release:  None
Planned Release:  1.15 Regression:  None
Work Required:  1 - Days Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
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
  • -email is unavailable- added by skybert (Posted a comment)
  • -email is unavailable- added by vinocit (Posted a comment)
  • -email is unavailable- added by micahcowan (Submitted the item)
  •  

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-08-16 skybert Attached File- Added wget-timestamp2.patch, #21233
    2010-08-16 skybert Attached File- Added wget-timestamp.patch, #21232
    2007-07-20 micahcowan Planned ReleaseNone 1.15

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code