Re: firefox timestamp

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fredrik Lundh

    Re: firefox timestamp

    abhilash pp wrote:
    I don't know if this question will fit on this section,
    any way my query is , i have used one script demork.py to extract
    details from Firefox history.dat file
    and now the problem is how to convert the TIMESTAMP given by that to
    normal date and time.
    example timestams are like this,
    >
    120291977160937 5
    121387467620312 5
    121569326385937 5
    >
    i have used datetime module for this but it gave me error
    a quick googling indicates that the file contains microseconds, not
    seconds. dividing by 1e6 should do the trick:
    >>t = 120291977160937 5
    >>datetime.date time.fromtimest amp(t / 1e6)
    datetime.dateti me(2008, 2, 13, 17, 22, 51, 609375)

    </F>

Working...