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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:35:38+00:00 2026-06-17T11:35:38+00:00

Good ! I am having some difficulties with extracting data from a date. The

  • 0

Good !

I am having some difficulties with extracting data from a date. The thing is that I get a number from an undocumented API.

“created”: 734394
“last_chapter_date”: 734883

I tried dividing it by 365,242 days (exact amount of days a year)

2010,705231052289
So apparently these are the number of days passed since 0.0.0000

I am currently trying something like that:
http://jsfiddle.net/LRUy5/4/

function zero21970(nDays) {
    // 0     70   2013  
    // |-----|-----|  

    // 0 to date
    var dateMils = nDays*24*60*60*100;
    // 0 to 1970
    zeroTo1970 = (1970*365.242)*24*60*60*100;

    //subtract time from 0-1970 from the time 0-date
    //to cut out the part from 1970-today
    return new Date(dateMils-zeroTo1970);
}

//http://www.mangaeden.com/api/manga/4e70e9f6c092255ef7004344/
zero21970(734394) //-> Jan 26 1974

I need to save it in a database and work with it via php or javascript..
Does anyone recognize this kind of format or do you know a convenient way of formatting it?

Edit: I should add that the last chapter came out around 15.01.2013.. just to have something to grab.

  • 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-17T11:35:38+00:00Added an answer on June 17, 2026 at 11:35 am

    Updated version:

    I guess if the last chapter was from 2013, then the value is a number of days from 01.01.0001. So we can update the initial date as well as change setHours to setDate method for more accuracy:

    var date = new Date("0001");
    date.setDate(734883);
    date.toGMTString();  // "Tue, 15 Jan 2013 00:00:00 GMT"
    

    DEMO: http://jsfiddle.net/LRUy5/6/


    Old version:

    I found one solution that successfully works at my computer:

    var date = new Date("0000");
    date.setHours(734394 * 24);
    date.toGMTString();  // "Mon, 13 Sep 2010 21:00:00 GMT"
    

    DEMO: http://jsfiddle.net/LRUy5/5/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're starting to standardise on a Ruby-based testing framework, having had some very good
Good morning. I've been having this issue for some days and have been lokking
Good day. I'm having some issues with my android project specifically listview. I tried
I have been having some trouble finding a good way to output just the
I'm having some trouble with Converting Text to a list. The situation is that
Good afternoon, I am having difficulties with libxml2. I tried to build the Perl
I'm having some thoughts about proper building my app and provide a good and
Good day all, I am having some trouble with image permissions. I am loading
I'm having some trouble with the Google Maps API; I want to determine a
I'm having some trouble writing a secure WCF data service to be consumed by

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.