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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:48:38+00:00 2026-06-07T05:48:38+00:00

I am working in Firefox’s places.sqlite file and need to convert the local DateTime

  • 0

I am working in Firefox’s places.sqlite file and need to convert the local DateTime to PRTime, using C#. PRTime is "a 64-bit integer representing the number of microseconds since midnight (00:00:00) 1 January 1970 Coordinated Universal Time (UTC)) to a datetime."

  • 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-07T05:48:40+00:00Added an answer on June 7, 2026 at 5:48 am

    This can be achieved with this little helper class here:

        public static class TimeHelper
        {
            // PRTime is Int64 count of microseconds from 1970-01-01-00-00-0000
            static Int64 ToPRTime(DateTime dateTime)
            {
                TimeSpan t = (dateTime - new DateTime(1970, 1, 1));
                return Convert.ToInt64(t.TotalMilliseconds * 1000);
            }
    
            static DateTime FromPrTime(Int64 prTime)
            {
                var someDate = new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
                var milliSeconds = prTime / 1000;
               return someDate.AddMilliseconds(milliSeconds);
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suddenly, local file access using jQuery's .getJSON is not working for me on Firefox
I am working in FireFox and I notice that a exception is thrown in
Can't seem to get my font working in firefox, seems to work fine in
t.tBodies(0).appendChild(r); is not working in firefox. This is javascript code and used to create
This is working fine in Firefox and IE, but I can't get this to
I have a set of small images which is working fine in Firefox but
I've recently updated to Selenium 2.24.1 to get Firefox 13 working. With this update
Good day everyone. I am working on a Firefox extension, and I want to
I've got the new autocomplete widget in jQuery UI 1.8rc3 working great in Firefox.
Hi Javascript gurus, I have this Javascript code which is working fine on Firefox

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.