Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Weird date format behavior with WWW::Mechanize

by whakka (Hermit)
on Apr 01, 2008 at 21:58 UTC ( #677847=note: print w/replies, xml ) Need Help??


in reply to Re^3: Weird date format behavior with WWW::Mechanize
in thread Weird date format behavior with WWW::Mechanize

Thanks, I'm impressed. I had never noticed you can look inside the js source code before. I'm still confused about how Mechanize would be getting the munged date but a normal browser wouldn't, but regardless, the solution lies in the formatting.
  • Comment on Re^4: Weird date format behavior with WWW::Mechanize

Replies are listed 'Best First'.
Re^5: Weird date format behavior with WWW::Mechanize
by runrig (Abbot) on Apr 01, 2008 at 22:16 UTC
    I'm still confused about how Mechanize would be getting the munged date but a normal browser wouldn't

    Because a browser can run JavaScript, and WWW::Mechanize can't (update: though other modules can, e.g. JavaScript::SpiderMonkey - as suggested by Fletch). Anyway, it's the (JavaScript in the) browser that is munging the date, not WWW::Mech.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://677847]
help
Chatterbox?
[kcott]: marioroy, not much to go on. Searching "slow logging" (by me) produces no results; just "slow" gives a screenful. Perhaps, "Searching large files a block at a time" which had a performance aspect and you had some imput also.
[gnosti]: Hi, Looking for a module that can add HH:MM:SS durations like 1:40, 1:00:24.13 and 12.3? I see on CPAN more modules with absolute dates. TIA
[kcott]: s/imput/input/
[Corion]: DateTime::Duration ? Personally,I convert stuff to seconds using Time::Piece or Time::Local and then add the seconds and then use POSIX::strftime to print them as hours again
[marto]: good morning all, TCIF
[gnosti]: I'm reading from ffmpeg lengths of video clips in H:M:S and needing to add them and format them back to H:M:S for feeding back to ffmpeg
[marioroy]: kcott Thanks

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2017-08-18 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (297 votes). Check out past polls.

    Notices?