Events (start and stop and duration)

Slides:



Advertisements
Similar presentations
Latitude and Longitude
Advertisements

Timezones CGC1P.
 1. Timezones  2. Reminder: Test!.  Parts of a Map  Types of maps  Compass Rose  Scale- types of scale (3 types), small scale vs. large scale 
TIME TRAVEL.
Phys. 102: Introduction to Astronomy
Outcome: A leaflet about time zones for tourists.
Aim: How are time zones created?
UNITS OF TIME.
Time Michelle Houck April 28, 2008, 4:15pm EST. What is time? Standard by which we measure Standard by which we measure One of the fundamental units of.
©G Dear 2009 – Not to be sold/Free to use
Where on Earth are You?.
 Earth rotates once/24 hrs = 24 time zones around the earth.  1 hr between each time zone.  Earth rotates through 360 of longitude in 24 hours.  Rotates.
International Time Zones
RAP Given the following pie chart, explain ALL the data. (You need to duplicate the pie graph in your ISN.)
Mind’s On – What’s the Time?
RRB PAGES Local Time and Time Zones. Solar Noon and Time Zones Solar Noon: when the sun is at the highest point in the sky. This may not be the.
Oracle9 i Datetime Functions Fresher Learning Program January, 2012.
Doc.: 18-14/0056r00 Submission 20 August 2014 Jay Holcomb, Itron, Inc. Slide 1 Agenda for Teleconference Meeting 20 August 2014.
What time is it??? World Time Zones See pg 30 of Holt purple text.
Timezones CGC1D. Time Zones The Earth has 24 times zones because it takes the Earth 24 hours to revolve around its axis The Earth has 24 times zones because.
Latitude and Longitude How do we find places on maps?
 1. Mental Monday  2. Timezones  3. Reminder: Test Thursday!
Time Zones. What is a Time Zone? Why do We Need Standard Time? Before the late 1800s, towns and cities would set their own times based on the sun Due.
Longitude and Time.
Time Zones Astronomy Unit Ch Effect of Earth’s rotation Created based on the rate at which the sun appears to move across the sky ▫Sun rises in.
International time zones The zones are approximately 15º wide and are 1 hour apart. (They do vary from country to country. For example Australian Central.
Date Dimension: Past & Future in One Script Steve Wake, BI Developer, Chipotle.
Latitude and Longitude
Latitude and Longitude
Time Zones.
GREENWHICH MARIDIAN.
Add to table of contents:
Locating Positions on Earth
Time Zones Map: By TimeZonesBoy [CC BY-SA 3.0 ( or Public domain], via Wikimedia Commons.
WELCOME TO SOCIAL STUDIES 9TH GRADE
Guam PDT MST EDT UTC/ GMT
Agenda for Teleconference Meeting January 24, 2013
Astronomical time SSP 2017.
Time Zones.
you thought of going into teaching?”
Latitude and Longitude
Time Zones.
Time & Culture Sept. 20th, 2016.
Time Zones.
Time Zones Map: By TimeZonesBoy [CC BY-SA 3.0 ( or Public domain], via Wikimedia Commons.
FACTS ABOUT THE EARTH, THE SUN AND TELLING TIME
Solar time and Sidereal (Star) Time
November 2011 November 2011 Name: __________________________
Time in Meteorology.
Time Zones.
-Time is based on longitude lines.
Rotation of the Earth Ana Borrajo Castanedo. Social Sciences' teacher. IES El Pinar. Alcorcón.
Aim: How do we use time zones to determine longitude?
Time Zones.
How to find your way . N E W The four Cardinal Points S.
International Time Zones
Time in Meteorology.
October beta club meeting
Latitude and Longitude
What time zone do you live in????
Time Vocabulary: Time difference hour time zones elapsed
AIM: What are time zones and why are they important?
Latitude and Longitude
Latitude and Longitude
Time Vocabulary: Time difference hour time zones elapsed
Latitude and Longitude
Time Zones.
Presentation transcript:

Events (start and stop and duration) Calendar Time Recording time Calendars Events (start and stop and duration) UTC and GMT

Events Event: Denver Broncos at San Francisco 49ers Date: November 18, 2018 Time: 1pm ET Denver is on Mountain Time San Francisco is on Pacific Time But the games start time is in Eastern Time. Why?

Events Event: Denver Broncos at San Francisco 49ers Date: November 18, 2018 Time: 1pm ET How should we record this start time in a database?

Events Event: Denver Broncos at San Francisco 49ers Date: November 18, 2018 Time: 1pm ET Suppose today is 10-25-2018 and we want to calculate how many days from now the game is? (2018-11-18) – (2018-10-25) = 24 days Do we calculate (year-year) * 365 + (month-month)*30 + day - day

Events with start and stop time Event: 3rd shift employee meeting Date: November 18, 2018 Start: 11:00pm Stop: 1:30am The stop date is not the same as the start date. How would you calculation the duration of the meeting? 2.5hours

Time displayed in different zones Suppose you are in New Jersey (USA) and you record a time in a database A website in India wants to display this in local time (11:30pm) Then do the time conversions.

Issues to resolve Months have different amounts of days Years have 365 or 366 days Hours from future days may be lower then current hours Time zone differences.

Upload a picture on facebook

Unix Time UNIX is an Operating System developed (in New Jersey) and unofficially “started” on January 1, 1970. By recording time as the number of seconds since 1970-1-1 at 00:00:00 we don’t need to record years, months, days, hours, minutes, AMPM etc. We just need a timezone to be the official timezone of the world. So we’ll use GMT and translate to any local time. conversion https://www.epochconverter.com

Greenwich Mean Time Greenwich Mean Time or GMT is clock time at the Royal Observatory in Greenwich, London. It is the same all year round and is not affected by Summer Time (Daylight Saving Time) clock changes. When the sun is at its highest point exactly above the Prime Meridian , it is 1200 noon at Greenwich.

Time zones of the world

Seconds in a… Minute = 60 Hour = 3600 Day = 86,400 Year (365) = 31,536,000 Range on a 32 bit signed integer 2,147,483,647 (or hexadecimal 7FFF,FFFF16) -2,147,483,648 (or hexadecimal 8000,000016) So we can record ~68 years before and after “1970/1/1” with a 32 bit integer (1902 - 2038) then we need more bits.

php code to read from database $DBconnection = loginDatabasei(); $sql = "SELECT eventname,start FROM attendanceeventsgroupsstartstop WHERE eventid ='$eventID' and groupid='$groupID'"; $eventResult = submitSQLstatementi($sql,$DBconnection); logoffDatabasei($DBconnection);

php code make human readable if ($eventResult) { $row = $eventResult->fetch_row(); $eventName = $row[0]; $start = $row[1]; $stop = $row[2]; date_default_timezone_set('EST5EDT'); $startDay = date('m/d/Y', $start); $startHour = date('h', $start); $startMinute = date('i', $start); $startAMPM = date('A', $start); }