Jump to content
MakeWebGames

Time


boionfire81

Recommended Posts

So yeah, this might just be going to far in depth. But unique, creative, and user-responsive design is what I am aiming for. So here's the question.

How can I determine the "time/day" through php from only mysqli input to show given information based on such. (i.e. not geolocation, but strict database).

A complete list of locations, timezones, and time offsets is already done. (Just need to shrink from 2 tables to 1).

I have no clue with timing.

What I want to do 4 things

1) An exact time (mostly for fluff actually).

2) Determine day/night time. (mostly design, but some store closing, bar open stuff)

3) Determine the day of the week (Simply to give a unique "clubbing" experience)

4) Determine the season (Used for my farming mod)

I imagine exact date/time would be a simple select `offset` from locations where location = $ir['located']. And then a $truetime= time() - `offset`

I could be right or wrong on that. Just guessing from what I've learned so far. Now using the above settings. Me = no clue!

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...