How to decode LastStart & LastEnd ?

Author Message
Pablo 09/13/2007 06:34 pm
Hello Oleg,
I?m writing a small program that makes a daily report on the result of the scheduled downloads, and generates alerts on certain situations. I will be processing the file WebDown.dat, taking several parameters of each project.

One of the parameters I need, and cannot understand how to "decode" is the Last Start time of the project?s execution, and the Last End time.

In WebDown.dat the info is as follows:

And in the REPORT page, these "translate" to:
Time: 30/07/2007 05:39:14
Elapsed Time: 0 days 00:13:59

What kind of coding are you using to store the LastStart and LastEnd times so I can "translate" them to a date/time I can process??

Thank you very much,

Oleg Chernavin 09/14/2007 06:33 am
You will need to concatenate the bytes divided with : into a double-precision float variable. The integer part of it is number of dates. The part after the decimal point is hours/minutes of that day.

Best regards,
Oleg Chernavin
MP Staff
Pablo 09/14/2007 11:52 am
Sorry to bother again, but I was not able to translate LastStart/LastEnd to a date/time format...

Say, for example LastStart=182:182:220:137:183:47:227:64:

First I concatenated the bytes to:

And now... how can I convert this to date/time? I'm using Xbase (a variant of the old Clipper DBF language), so I must "decode" it manually using arithmethic or string operations...

Sorry if this goes beyond the scope of the normal support of OEP !!
Thank you very much,
Oleg Chernavin 09/15/2007 01:56 pm
Well, I don't know how to convert. We develop Offline Explorer using Delphi and there is a TDateTime type.

Pablo 09/17/2007 07:27 am
That's a useful information. I have a friend good on Delphi, so he can help me in the conversion of double precision variables.
Thank you very much, Oleg.
Oleg Chernavin 09/17/2007 08:17 am
Great! You are welcome!

Pablo 09/27/2007 12:01 pm

I have been dealing with this topic about converting time/dates from double-precision to "something viewable", but give up. Couldn't decode it after hours trying...

Would it be too complicated for a future release to add three new lines in WebDown.dat, like as follows:

These two already exist:

These three are new, with the same info, but "viewable"

Best regards,
Oleg Chernavin 09/27/2007 12:06 pm
Well, it was done for internal use only. I didn't think about any other usage. Why do you need to access this info?

Oleg Chernavin 09/29/2007 09:35 am
OK. I will add a normal representation there. It will display the date in the format that is setup by your system.

I uploaded the updated oe.exe file here:

Pablo 10/01/2007 09:09 am
That's fantastic !
Thank you very much !
Oleg Chernavin 10/03/2007 05:40 am
You are welcome!

Pablo 10/12/2007 10:42 am
Dear Oleg,

I few days I have installed the new OEP2654.ZIP you generated for me. The new date/time fields work great, and I'm using them succesfully.

I'm now having a weird problem that might have nothing to do with OEP, but I would like to ask it anyway:

I have a few dozens of projects scheduled to download at night. Approximately since I have installed the new OEP build, OEP stops downloading at midnight (00:00 Hours), and at the next morning, I find all the projects in the "STOPPED" state.
I'm trying to find where is the problem. I'm checking the network connection, which I think is the most probable reason... but anyway dropped this to you just for the case it has something to do with OEP...

Thank you very much,
Oleg Chernavin 10/12/2007 10:58 am
It doesn't have code to do the stop. However, can you restore the previous oe.exe file just to test if it is the new version or not?

Oleg Chernavin 10/16/2007 12:17 pm
I am trying to reproduce this, but it works well. Can you please upgrade to the latest 4.8 SR1 version?

If it also fails, can you please uncheck the Suppress Server Errors box in the Project Properties dialog - Advanced section?

Please let me know how it goes. Thank you!

Pablo 10/17/2007 12:21 pm

I repeated the test, but using build 4.9.2654 (the last you compiled for me with LastStarted=).
Tryed also unchecking the flag as you suggested.

The result is allways the same:
- The project starts downloading as usual
- At a certain point (perhaps the end of the download), the project stops downloading files
- Left corner with the "Parsing (xxx)" is fixed (xxx is a certain number of files)
- No files look to be downloading: all are in light gray
- OE icon in the tray-icon zone is rotating, like if it is working, but it is not
- OE interfase responds normally: I can close, exit, etc.

Oleg Chernavin 10/18/2007 02:55 am
OK I see now. Let's do it this way. Please turn on log (Ctrl+W), uncheck Details and Download Progress in the Filters menu of the Log window, all others make checked. Let the download run until it hangs, save the log to a file and send it to me (ZIPped, please).

Pablo 10/23/2007 09:51 am
This is crazy: I followed your instructions to generate the log file, but now the project does not hang (ends normally)! Perhaps the origin of the problem was now modified in that website...
If it repeats, I will send you the log.
Thank you,

> OK I see now. Let's do it this way. Please turn on log (Ctrl+W), uncheck Details and Download Progress in the Filters menu of the Log window, all others make checked. Let the download run until it hangs, save the log to a file and send it to me (ZIPped, please).
> Oleg.
Oleg Chernavin 10/23/2007 11:26 am
Yes, it is possible. It is sad, because I would prefer to find and fix the error. :)

Pablo 10/31/2007 08:00 am
Well, today the problem happened again: OE Stopped downloading the site, and all subsequent scheduled downloads were also stopped.

I'm sending to support @ a ZIPped file with the LOG, and also a screen picture of OE when hanged.

Oleg Chernavin 10/31/2007 09:41 am
OK. Good. If you don't hear from me within two days, please post here again - sometimes antispam filters kill every E-mail, even good ones. I will write you myself then.

Pablo 11/07/2007 07:38 am

I didn't hear from you... did you receive my e-mail with the log information ??

Oleg Chernavin 11/07/2007 09:07 am
No. I sent you an E-mail myself. If you get it, please reply with the logs.

Pablo 11/07/2007 10:03 am
OK, I resent the info to your email.
Oleg Chernavin 11/08/2007 07:37 am
Yes, I got it. Thank you!