{
  "id": 3219,
  "title": "Interpreting date/time values in flighthistory.csv",
  "url": "/competitions/flight/discussion/3219",
  "author_name": "",
  "post_date": "2012-11-30T17:54:29.323Z",
  "votes": null,
  "comment_count": 9,
  "views": 7941,
  "content": "<p>I want to confirm my interpretation of the date/time values in the flighthistory.csv dataset.&nbsp;</p>\r\n<p>Values are given as &quot;2012-11-21 17:40:00&#43;00:00&quot;&nbsp; I believe this is UTC.&nbsp;</p>\r\n<p>To determine the locale time for the departure airport or arrival airport, I add the values from the &quot;departure_airport_timezone_offset&quot; or &quot;arrival_airport_timezone_offset&quot; columns, respectively, to the UTC time.</p>\r\n<p>Is this correct?</p>",
  "messages": [
    {
      "id": "17278",
      "postDate": "11/30/2012 17:54:29",
      "content": "<p>I want to confirm my interpretation of the date/time values in the flighthistory.csv dataset.&nbsp;</p>\r\n<p>Values are given as &quot;2012-11-21 17:40:00&#43;00:00&quot;&nbsp; I believe this is UTC.&nbsp;</p>\r\n<p>To determine the locale time for the departure airport or arrival airport, I add the values from the &quot;departure_airport_timezone_offset&quot; or &quot;arrival_airport_timezone_offset&quot; columns, respectively, to the UTC time.</p>\r\n<p>Is this correct?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17282",
      "postDate": "11/30/2012 19:33:20",
      "content": "<p>I'm guessing here, but based on the data it looks to me like the date/time values are in local time.\r\n</p>\r\n<p>You can back into the scheduled air time by taking the difference between the scheduled runway departure and the scheduled runway arrival. That difference will NOT match up with the scheduled air time on flights where the departure timezone offset is different\r\n from the arrival timezone offset. If you adjust the departure and arrival times by the timezone offsets first, then the scheduled air time will always match the difference between those adjusted times.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17286",
      "postDate": "11/30/2012 19:53:16",
      "content": "<p>Ben, if that's the case, can you explain why the 'scheduled air time' does not match the difference between the scheduled departure and arrival times on flights that cross time zones?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17290",
      "postDate": "11/30/2012 20:36:40",
      "content": "<p>There does seem to be an error. Compare the flight number with that found in asdiflightplan.csv, which lists the departure and arrival times in UTC. I just looked at a couple entries, but if the UTC time in asdiflightplan.csv is to be trusted, then the values\r\n in flighthistory.csv are off. It appears that the departure times are incremented by the number of hours' difference in timezone from departure to arrival.</p>\r\n<p>For instance, flight 280190244 from 11/12/2012 has a UTC departure listed from asdiflightplan of 10:59PM on 11/12/2012. The departure time listed in flighthistory is 1:59AM on 11/13/2012, and the timezone at departure is -5 and at arrival -8. So the flighthistory\r\n departure time is increased by 3 hours (the difference between -5 and -8) over the UTC time. I suspect that this adjustment was made because they assumed that the departure and arrival times were at local times, and they wanted to make sure everything was\r\n in UTC. In fact, they were <em>already</em> at UTC, so the adjustment threw them off.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17291",
      "postDate": "11/30/2012 21:10:04",
      "content": "<p>Yes -- that looks plausible. &nbsp;Unfortunately that would mean that the fields we are trying to predict are being misrepresented. &nbsp;Should we try to predict the arrival times in UTC, in local-time, or in nonsense-time that is consistent with the data set?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17298",
      "postDate": "11/30/2012 21:52:34",
      "content": "<p>[quote=Daniel Lupton;17290]</p>\r\n<p>There does seem to be an error. Compare the flight number with that found in asdiflightplan.csv, which lists the departure and arrival times in UTC. I just looked at a couple entries, but if the UTC time in asdiflightplan.csv is to be trusted, then the values\r\n in flighthistory.csv are off. It appears that the departure times are incremented by the number of hours' difference in timezone from departure to arrival.</p>\r\n<p>[/quote]Thanks for pointing this out and we apologize for the issue.</p>\r\n<p>I can confirm that they are in local time (not UTC). We will be releasing an updated version of the dataset that accounts for this issue and includes a sample of the test set format between now and the release of the test set. Please let us know if you come\r\n across any other discrepancies in the data as well.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17330",
      "postDate": "12/02/2012 02:51:25",
      "content": "<pre>There seems to be duplicate values in &quot;\\InitialTrainingSet\\2012_11_12\\ASDI\\asdiposition.csv&quot; (There are duplicates in other days too)</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>\tLine 534: 2012-11-12 04:23:26-08,ASH2648,14500,356,34.4000015258789,-79.9499969482422,280206428<br>\tLine 545: 2012-11-12 04:23:26-08,ASH2648,14300,367,34.4199981689453,-79.9700012207031,280206428</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>I'm claiming these are duplicates because they are reporting the same flighthistoryid, time, and tailnumber.</pre>\r\n<pre>Is this intentional? Should we take the average of the two values?</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Also, what does the '-08' at the end of the timestamp mean? Are we talking about UTC-08?</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>2012-11-12 04:23:26<em><span style=\"text-decoration:underline\"><strong>-08</strong></span></em>,ASH2648,14500,356,34.4000015258789,-79.9499969482422,280206428</pre>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17335",
      "postDate": "12/02/2012 07:39:02",
      "content": "<p>I still confused by different date/time values in different files.<br>\r\nFor example, flight_history_id 280845188 in file FlightHistory/flighthistory.csv from 11/18/2012, the published departure and arrival time are 14:05:00 and15:25:00(this two are local time). Timezone offset at departure is -5 and at arrival is -6. but in file\r\n ASDI/asdiflightplan.csv the departure and arrival time are 11:05:00,13:25:00(UTC time as described in file).\r\n<br>\r\nThe question is how to convert the local time to UTC time? <br>\r\nDoes other date/time values in other files(e.g, the start and end time in flightstats_atsccdelay.csv) are UTC format or they are local time?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17399",
      "postDate": "12/05/2012 09:55:31",
      "content": "<p>Flight with flight historyid =&nbsp;280818201 (DAL120 from JFK to LAX)</p>\r\n<p>In asdiflightplan is given as: estimatedarrivalutc&nbsp; =&nbsp;20/11/2012 7:38:00 PM</p>\r\n<p>In&nbsp;asdiposition is given as: received =&nbsp;21/11/2012 6:38:16 AM</p>\r\n<p>- the last entry for this flight at an altitide of 100, which I'm guessing is when it touched down (and at a lat and long which puts it approx 600m south of the southern most runway at LAX - at&nbsp;<span class=\"x_pp-place-title\">1221 E Acacia Ave,&nbsp;</span>El\r\n Segundo, CA according to google maps!!).</p>\r\n<p>How do the times in asdiposition relate to those in asdiflightplan and/or flighthistory?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "17406",
      "postDate": "12/05/2012 14:36:33",
      "content": "<p>[quote=Ben Hamner;17298]</p>\r\n<p>I can confirm that they are in local time (not UTC). We will be releasing an updated version of the dataset that accounts for this issue and includes a sample of the test set format between now and the release of the test set. Please let us know if you come\r\n across any other discrepancies in the data as well.</p>\r\n<p>[/quote]</p>\r\n<p>Ben...any ETA for the &quot;updated version of the dataset&quot;?</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 17282,
      "author_name": "jonrodney",
      "author_url": "",
      "post_date": "11/30/2012 19:33:20",
      "content": "<p>I'm guessing here, but based on the data it looks to me like the date/time values are in local time.\r\n</p>\r\n<p>You can back into the scheduled air time by taking the difference between the scheduled runway departure and the scheduled runway arrival. That difference will NOT match up with the scheduled air time on flights where the departure timezone offset is different\r\n from the arrival timezone offset. If you adjust the departure and arrival times by the timezone offsets first, then the scheduled air time will always match the difference between those adjusted times.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17286,
      "author_name": "jonrodney",
      "author_url": "",
      "post_date": "11/30/2012 19:53:16",
      "content": "<p>Ben, if that's the case, can you explain why the 'scheduled air time' does not match the difference between the scheduled departure and arrival times on flights that cross time zones?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17290,
      "author_name": "daniellupton",
      "author_url": "",
      "post_date": "11/30/2012 20:36:40",
      "content": "<p>There does seem to be an error. Compare the flight number with that found in asdiflightplan.csv, which lists the departure and arrival times in UTC. I just looked at a couple entries, but if the UTC time in asdiflightplan.csv is to be trusted, then the values\r\n in flighthistory.csv are off. It appears that the departure times are incremented by the number of hours' difference in timezone from departure to arrival.</p>\r\n<p>For instance, flight 280190244 from 11/12/2012 has a UTC departure listed from asdiflightplan of 10:59PM on 11/12/2012. The departure time listed in flighthistory is 1:59AM on 11/13/2012, and the timezone at departure is -5 and at arrival -8. So the flighthistory\r\n departure time is increased by 3 hours (the difference between -5 and -8) over the UTC time. I suspect that this adjustment was made because they assumed that the departure and arrival times were at local times, and they wanted to make sure everything was\r\n in UTC. In fact, they were <em>already</em> at UTC, so the adjustment threw them off.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17291,
      "author_name": "jonrodney",
      "author_url": "",
      "post_date": "11/30/2012 21:10:04",
      "content": "<p>Yes -- that looks plausible. &nbsp;Unfortunately that would mean that the fields we are trying to predict are being misrepresented. &nbsp;Should we try to predict the arrival times in UTC, in local-time, or in nonsense-time that is consistent with the data set?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17298,
      "author_name": "benhamner",
      "author_url": "",
      "post_date": "11/30/2012 21:52:34",
      "content": "<p>[quote=Daniel Lupton;17290]</p>\r\n<p>There does seem to be an error. Compare the flight number with that found in asdiflightplan.csv, which lists the departure and arrival times in UTC. I just looked at a couple entries, but if the UTC time in asdiflightplan.csv is to be trusted, then the values\r\n in flighthistory.csv are off. It appears that the departure times are incremented by the number of hours' difference in timezone from departure to arrival.</p>\r\n<p>[/quote]Thanks for pointing this out and we apologize for the issue.</p>\r\n<p>I can confirm that they are in local time (not UTC). We will be releasing an updated version of the dataset that accounts for this issue and includes a sample of the test set format between now and the release of the test set. Please let us know if you come\r\n across any other discrepancies in the data as well.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17330,
      "author_name": "rabeti",
      "author_url": "",
      "post_date": "12/02/2012 02:51:25",
      "content": "<pre>There seems to be duplicate values in &quot;\\InitialTrainingSet\\2012_11_12\\ASDI\\asdiposition.csv&quot; (There are duplicates in other days too)</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>\tLine 534: 2012-11-12 04:23:26-08,ASH2648,14500,356,34.4000015258789,-79.9499969482422,280206428<br>\tLine 545: 2012-11-12 04:23:26-08,ASH2648,14300,367,34.4199981689453,-79.9700012207031,280206428</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>I'm claiming these are duplicates because they are reporting the same flighthistoryid, time, and tailnumber.</pre>\r\n<pre>Is this intentional? Should we take the average of the two values?</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>Also, what does the '-08' at the end of the timestamp mean? Are we talking about UTC-08?</pre>\r\n<pre>&nbsp;</pre>\r\n<pre>2012-11-12 04:23:26<em><span style=\"text-decoration:underline\"><strong>-08</strong></span></em>,ASH2648,14500,356,34.4000015258789,-79.9499969482422,280206428</pre>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17335,
      "author_name": "rongkaixia",
      "author_url": "",
      "post_date": "12/02/2012 07:39:02",
      "content": "<p>I still confused by different date/time values in different files.<br>\r\nFor example, flight_history_id 280845188 in file FlightHistory/flighthistory.csv from 11/18/2012, the published departure and arrival time are 14:05:00 and15:25:00(this two are local time). Timezone offset at departure is -5 and at arrival is -6. but in file\r\n ASDI/asdiflightplan.csv the departure and arrival time are 11:05:00,13:25:00(UTC time as described in file).\r\n<br>\r\nThe question is how to convert the local time to UTC time? <br>\r\nDoes other date/time values in other files(e.g, the start and end time in flightstats_atsccdelay.csv) are UTC format or they are local time?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17399,
      "author_name": "marka25933",
      "author_url": "",
      "post_date": "12/05/2012 09:55:31",
      "content": "<p>Flight with flight historyid =&nbsp;280818201 (DAL120 from JFK to LAX)</p>\r\n<p>In asdiflightplan is given as: estimatedarrivalutc&nbsp; =&nbsp;20/11/2012 7:38:00 PM</p>\r\n<p>In&nbsp;asdiposition is given as: received =&nbsp;21/11/2012 6:38:16 AM</p>\r\n<p>- the last entry for this flight at an altitide of 100, which I'm guessing is when it touched down (and at a lat and long which puts it approx 600m south of the southern most runway at LAX - at&nbsp;<span class=\"x_pp-place-title\">1221 E Acacia Ave,&nbsp;</span>El\r\n Segundo, CA according to google maps!!).</p>\r\n<p>How do the times in asdiposition relate to those in asdiflightplan and/or flighthistory?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 17406,
      "author_name": "jimthompson",
      "author_url": "",
      "post_date": "12/05/2012 14:36:33",
      "content": "<p>[quote=Ben Hamner;17298]</p>\r\n<p>I can confirm that they are in local time (not UTC). We will be releasing an updated version of the dataset that accounts for this issue and includes a sample of the test set format between now and the release of the test set. Please let us know if you come\r\n across any other discrepancies in the data as well.</p>\r\n<p>[/quote]</p>\r\n<p>Ben...any ETA for the &quot;updated version of the dataset&quot;?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "17278": "",
    "17282": "",
    "17286": "",
    "17290": "",
    "17291": "",
    "17298": "",
    "17330": "",
    "17335": "",
    "17399": "",
    "17406": ""
  },
  "source": "meta"
}