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 8364693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:29:00+00:00 2026-06-09T12:29:00+00:00

Alright I was looking at this in python but I just like ruby better.

  • 0

Alright I was looking at this in python but I just like ruby better. What I’m trying to do is get a date and time from this number – 12988822998637849 – which is the number of microseconds since January 1, 1601 UTC. This is how Chrome stores it’s timestamps and i’ve seen a number of methods to do this in python, but I am just more comfortable with ruby and I have no idea on how to even start going about doing this. (My Google-Fu didn’t help me this time)
Note this example number is from a few days ago. I’ll take any help I can get. Thank you!

  • 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-09T12:29:01+00:00Added an answer on June 9, 2026 at 12:29 pm

    look at Time.at.

    A Windows file time is “a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated Universal Time (UTC).” Ref.

    In contrast, Ruby stores times like Unix: “Time is stored internally as the number of seconds and microseconds since the epoch, January 1, 1970 00:00 UTC” Ref.

    # This return a Time
    Time.at(12988822998637849/1000000-11644473600) # Epoch Diff is 11644473600
    # => 2012-08-07 11:23:18 -0300 
    
    # This returns a String
    Time.at(12988822998637849/1000000-11644473600).strftime("%Y-%m-%d %H:%M.%S")
    # => "2012-08-07 11:23.18"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright...I am here looking for some bread crumbs. This is my code: using System;
Alright, What Im looking for is a script that would automatically add a date
Alright, this is driving me nuts because my regex is working on Rubular, but
Alright so I have no idea how to even begin doing this But basically
Alright I created some custom classes for my project sourced from this tutorial ,
I'm alright with basic regular expressions, but I get a bit lost around pos/neg
I'm looking at modifying a toy OS system and I'm just trying to learn
Alright, I've gone nuts looking for an answer. This is simple, I know it.
Alright, it has been a long couple of days trying to figure this out
(Related to this question .) I'm looking for a wysiwyg editor, but which outputs

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.