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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:57:38+00:00 2026-05-16T22:57:38+00:00

Well, found out that I built a relatively large program built on top of

  • 0

Well, found out that I built a relatively large program built on top of DateTime, only to find most of what I used there got added in PHP 5.3. The server I have to deploy to does not run 5.3. (And it’s a Ubuntu Hardy (8.04) box which doesn’t have a 5.3 package in the main repo, and I’m not allowed to install anything not in the main repos on that box…)

  1. Is there some way to get a copy of the date and time function reference as was current for 5.2.4?
  2. What is the best way to pass dates around? ints containing unix epoch times?
  • 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-05-16T22:57:38+00:00Added an answer on May 16, 2026 at 10:57 pm

    When passing data around, I prefer to use unix timestamps. If you have a different representation, you can use strtotime() to convert it.

    There are a few functions that come in handy when working with dates & times. it looks like a lot of what is done w/ the DateTime object can be handled with some combinations of these methods:

    • date
    • time
    • mktime
    • strtotime

    also, just a clarification on your terminology, the unix epoch is the moment all unix timestamps count from, which is midnight, Dec 31, 1969.

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

Sidebar

Related Questions

Well I found a nice tutorial about how to program applications using Bonjour. It's
Well the title pretty much sums the question. The only thing I found is
I've investigated several C# DLL's and have not found any that work especially well.
Is there a well-known, portable, good library for C++ process management? I found a
I have a relatively large PHP-codebase (thousands of lines) for an application built with
I found out that my javascript-intensive web site doesn't work reliably (or at all)
I am writing a relatively simple program using Tkinter that is a converter for
I found this great class, all works well except... I spcify the output directory
I have found two different things in two well known books in c, first
I found many css/js menu scripts on various sites they work well is in

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.