-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 29 March 2002 08:03, Aner Gusic wrote:

> Well, now there is. :)  Se the attachment.  Code might not be great
> and I didn't know how that date/time string in history-files is
> formated so the program is not really fully functional.

        If it helps, the date seems to be a standard timestamp.  I'm a Perl 
novice, but you can convert times from Licq history files using Perl's 
"localtime" function, as in this program I spent 2 minutes writing.  
(If I'd taken 3 minutes, it might be easier to use.)

#!/usr/bin/perl

while (<>) {
        chomp;
        $realtime = localtime $_;
        print "Converted time is $realtime\n";
}

        You convert the time by doing this:

[rassilon@panopticon bin]$ echo 979353712 | ./timecvt.pl
Converted time is Fri Jan 12 21:41:52 2001

        You can probably grep through the history stuff in Licq source code to 
find the C way to change to human-readable dates, but I don't have it 
handy.

- -- 
// Carl Hudkins :: ICQ 5723399 :: PGP 50238D9E
//
// "When two hydrogen atoms love each other very much,
//  they bond with an oxygen atom..."  --Trance Gemini, Andromeda
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8pPhUlLp/6lAjjZ4RArxbAKDriS8+FxwsmxhYcFkN85U3X3bACACg2f08
ZjoDpVpML0GqyzurQuiV0GY=
=pQ54
-----END PGP SIGNATURE-----

_______________________________________________
Licq-main mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-main

Reply via email to