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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:53:20+00:00 2026-05-26T08:53:20+00:00

I am afraid, this would seem duplication of many questions on this same context,

  • 0

I am afraid, this would seem duplication of many questions on this same context, but i couldn’t find any answers for me in that.

What i want is a comparison between two UTC’s. One generated in java and one in PHP. I find both UTC (millisecond strings) entirely different.

The real case is an expiry calculation for authorization. I can allow a 3 minute expiry for a token. The token may be coming from any of the Local servers all over the world.

Can any one suggest a soln for this?…

thanks for your help

  • 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-26T08:53:20+00:00Added an answer on May 26, 2026 at 8:53 am

    The PHP timestamp is the number of seconds since the Unix epoch. Java’s libraries use the number of milliseconds since the Unix epoch. So I’d expect the PHP value to be one thousandth of the Java value.

    But yes, it’s the same epoch – both UTC, both midnight on January 1st 1970, in the ISO calendar. If the servers agree on time to a reasonable extent, you should be fine. However, 3 minutes is a relatively small window – how confident are you that all the machines involved are syncing with a network time server reasonably frequently?

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

Sidebar

Related Questions

I am afraid that this question might be a little too broad, but I
So I'm afraid this is another one of those slideshow questions that clutters up
I'm afraid that this is a very silly question, but I must be missing
I'm afraid I know the answer to this but I'll ask on the longshot
This will be a bit subjective, I'm afraid, but I'd value the advice of
I want so send every week an update by email. But Im afraid that
I'm running a java program that uses many vectors. I'm afraid my use of
I've looked around the forum, but cannot seem to find a definite answer to
This is a very simple, probably too simple question but I'm afraid my limited
I'm afraid I'm at a loss here, I checked out some similar questions but

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.