Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8182245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:47:55+00:00 2026-06-07T00:47:55+00:00

This is a tough one to google for. I have an XML document that’s

  • 0

This is a tough one to google for. I have an XML document that’s a million lines long, and I’m using Ruby to parse it and remove entries I don’t care about. One my my criteria is the date created. These XML blocks have funny looking dates in them

<attribute name="datemodified" type="date">362895460.21263897418975830078</attribute>
<attribute name="datecreated" type="date">356831173.15324598550796508789</attribute>

I’ve never seen dates formatted like that exactly. They look similar to if you did something like Time.now.to_f. Even so I don’t know how I’d turn those into Ruby DateTime objects. If you can even identify how these times are created, or what they mean, that would be super helpful.

If it helps, this XML file was originally created by a Mac OS X application known as “Things”.

Thanks for reading!

Update: I’ve created two more entries and recorded the times at which i created them:

From JULY-02-2012 9:57 AM

<attribute name="datemodified" type="date">362941035.01687598228454589844</attribute> 
<attribute name="datecreated" type="date">362940986.89370900392532348633</attribute>

From JULY-02-2012 9:58 AM

<attribute name="datemodified" type="date">362941107.69538801908493041992</attribute>
<attribute name="datecreated" type="date">362941080.53793197870254516602</attribute>

I couldn’t get down to the second on accuracy, but i did make them about minute apart… Which makes it seem that these are in fact seconds… But… from some random date. Maybe the developer’s birthday 🙂

Doing some quick math, it would appear that the randomish date is right around 2000-12-31 16:09:43 -0800, or perhaps 01/01/01, for ease of memory… And 978336000 in seconds.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T00:47:56+00:00Added an answer on June 7, 2026 at 12:47 am

    The Time.at method translates from seconds since 1970 to a Time instance:

    [1] pry(main)> Time.at 362895460.21263897418975830078
    => 1981-07-02 00:17:40 -0400
    

    If that date isn’t right, but the units are seconds, you could add a constant to get to the correct date, e.g.

    [2] pry(main)> Time.parse('2001-01-01') - Time.at(0)
    => 978325200.0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Google is failing me on this one. Let's say I have some ECMA script
I have tough time making this design decision. I could go with traditional new
I have an activity using an xml layout where a WebView is embedded. I
I'm new to Google Documents and have set up a spreadsheet that accesses the
I have a typed xml document stored as text. So I use CONVERT the
I've seen a few questions that were similar but not specific enough. This one
This one's really kicking my backside. I have a form, spawned and owned by
If you use the satellite GMapType using this Google-provided example in v3 of the
I have tried to find s better PHP error handler, one that will be
I am having the hardest time figuring this out, even though it is one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.