This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Conversion of “accessdate” into python.

Tags: None
(comma "," separated)
pti-jean
Registered Member
Posts
18
Karma
0
Hello,

(Message translated in English in the “translate.google”)

How to convert into date the fields “statistics/accessdate” of the data base starting from python?

http://amarok.kde.org/forum/index.php/topic,14477.0.html

@+

JM
pti-jean
Registered Member
Posts
18
Karma
0
Hello,

I found the solution.

It was very simple…

If “accdate” is the value of the fields “accessdate”:
T = time.strftime("%H:%M:%S %d/%m/%y", time.localtime(int(accdate)))

@+

JM


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]