WXforum.net
May 23, 2013, 03:30:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6617  •  Posts: 178630  •  Topics: 18128
Please welcome TheMOX, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Decoding a file name  (Read 614 times)
0 Members and 1 Guest are viewing this topic.
Arthurhh
Senior Contributor
****
Offline Offline

Posts: 251


IT Fixer


WWW
« on: August 20, 2009, 06:37:01 PM »

There is an image file produced on a local web site that i would like to grab on a regular basis. Getting permisiion is not the problem, but decoding how the generated file name is produced is.

http://www.XXXXXXX.XXX/IcePics/ob/7d73-12339d0fa40-12339d2dcdf.NPL.png
The Url is contstant but the hex sequence before the .NPL.png changes for each image, now I assumed it is a time date stamp but havnt worked out how it relates so I can predict the next images generated name.

below is several files with the date time stamp, can anyone see a relationship here, or know of a way to get the approiate next image.

[IMG]   7d73-122f63982c0-122f63ce8f9.NPL.png   07-Aug-2009 19:11     24K
[IMG]   7d73-122f3018940-122f303656c.NPL.png   07-Aug-2009 04:10     24K
[IMG]   7d73-122f78319c0-122f786d8b3.NPL.png   08-Aug-2009 01:14     25K
[IMG]   7d73-122434485c0-1224346657f.NPL.png   04-Jul-2009 00:59     37K
[IMG]   7d73-122464590c0-122464a7583.NPL.png   04-Jul-2009 19:01     35K
Logged

Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #1 on: August 21, 2009, 09:09:00 AM »

I think that the figures betwen 7d73 and .NPL.png is the UNIX time stamp for that file.
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Arthurhh
Senior Contributor
****
Offline Offline

Posts: 251


IT Fixer


WWW
« Reply #2 on: August 21, 2009, 04:25:03 PM »

I think that the figures betwen 7d73 and .NPL.png is the UNIX time stamp for that file.

That's what I figured so it is off to Google I go to work this out unless I can find some code that checks the directory for new files and downloads them, I can then use them by selection the english in the name plus the file date stamp.

Done the google thing and it is not a unix time stamp, unix epoch time stamps are decimal according to what I have found so far
« Last Edit: August 21, 2009, 04:38:14 PM by Arthurhh » Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.104 seconds with 19 queries.