Hi, For our internet airline booking engine of flights we¹re using the tzdata2012j version. In this version the DST timing for Morroco is not correct. We¹re facing a lot of problems because of this, this because a large amount of flights are departing from Morocco between 23:00 and 24:00. Morocco is also on Wintertime during the month of Ramadan. The correct timezone should be: WET DST starts on Sunday, 28 April 2013, 02:00 local standard time. DST ends on Tuesday, 9 July 2013, 03:00 local daylight time. DST starts on Thursday, 8 August 2013, 02:00 local standard time. DST ends on Sunday, 29 September 2013, 03:00 local daylight time. Source: http://www.timeanddate.com/worldclock/city.html?n=60 Would you please be so kind to give me an indication when this can be changed? Best regards and thanks, Erik Erik Homoet Business Consultant quintessence consulting AMS mobile: +31 614534022 email: ehomoet@quintessence.net skype: erik_qc_ams
At 02:46 28-02-2013, Erik Homoet wrote:
Morocco is also on Wintertime during the month of Ramadan.
The correct timezone should be: WET DST starts on Sunday, 28 April 2013, 02:00 local standard time. DST ends on Tuesday, 9 July 2013, 03:00 local daylight time. DST starts on Thursday, 8 August 2013, 02:00 local standard time. DST ends on Sunday, 29 September 2013, 03:00 local daylight time.
Source: http://www.timeanddate.com/worldclock/city.html?n=60
The following was posted for Morocco in 2012 http://mm.icann.org/pipermail/tz/2012-March/017555.html DST (+60 minutes) started on Sunday 29 April, 2012 at 02:00. ( http://www.mmsp.gov.ma/fr/actualites.aspx?id=250 ). There was an exception during the month of Ramadan; DST ended on 20 July, 2012 at 03:00 and started on 20 August, 2012 at 02:00. DST ended on 30 September, 2012 ( http://www.lematin.ma/express/GMT-1-suspendu_Retour-a-l-heure-legale-dimanch... ). Regards, -sm
On 02/28/13 02:46, Erik Homoet wrote:
Morocco is also on Wintertime during the month of Ramadan.
Thank you for the heads-up. Can you please point us at a local, reliable source for this news? Presumably timeanddate.com got it from somewhere. An English-language source would be preferred, but Arabic is OK. The Wikipedia article "Daylight saving time in Morocco" <http://en.wikipedia.org/wiki/Daylight_saving_time_in_Morocco> says "starting in 2012, clocks shall be advanced 60 minutes at 02:00 on the last Sunday of April of each year, and return to UTC at 03:00 on the last Sunday of September of the same year, with the exception of the holy month of Ramadan, during which DST will not be observed." But the sources it cites don't actually seem to say this. Which raises the question: how is Ramadan determined in Morocco? Is it a government decree long in advance, or is it decided based on visual sightings of the crescent moon? If the latter, it's going to be hard for us to predict the daylight-saving transitions.
Whether Ramadan is based on observation or astronomical prediction seems to vary according to the branch of Islam, so I guess that it may be uniform across the country or vary from sect to sect, depending on the make up of Muslims in the country. However from some work I did on predicting prayer times etc, when based on observation it is generally within a day of calculations. So I suggest that where Ramadan is based on observations the practical approach that gives the right answer most often is to set up a rule based on calculation, and then modify it for observation each year if necessary - though because of the time needed to receive the info and incorporate it into a release, the adjustment will really only be for historical purposes. Tim Smartcom Software Ltd Portsmouth Technopole Kingston Crescent Portsmouth PO2 8FA United Kingdom www.smartcomsoftware.com Smartcom Software is a limited company registered in England and Wales, registered number 05641521. -----Original Message----- From: tz-bounces@iana.org [mailto:tz-bounces@iana.org] On Behalf Of Paul Eggert Sent: 02 March 2013 02:21 To: Erik Homoet Cc: Sascha von Gualtieri; tz@iana.org Subject: Re: [tz] Timezones Morocco 2013 incorrect On 02/28/13 02:46, Erik Homoet wrote:
Morocco is also on Wintertime during the month of Ramadan.
Thank you for the heads-up. Can you please point us at a local, reliable source for this news? Presumably timeanddate.com got it from somewhere. An English-language source would be preferred, but Arabic is OK. The Wikipedia article "Daylight saving time in Morocco" <http://en.wikipedia.org/wiki/Daylight_saving_time_in_Morocco> says "starting in 2012, clocks shall be advanced 60 minutes at 02:00 on the last Sunday of April of each year, and return to UTC at 03:00 on the last Sunday of September of the same year, with the exception of the holy month of Ramadan, during which DST will not be observed." But the sources it cites don't actually seem to say this. Which raises the question: how is Ramadan determined in Morocco? Is it a government decree long in advance, or is it decided based on visual sightings of the crescent moon? If the latter, it's going to be hard for us to predict the daylight-saving transitions.
Hi Paul, Law by the government is the for the long term, not having DST during Ramadan: http://support.microsoft.com/kb/2698707/en http://www.timeanddate.com/news/time/morocco-dst-2012.html http://wwp.greenwichmeantime.com/time-zone/africa/morocco/time-morocco/ http://www.worldtimezone.com/dst_news/ An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it. Ramadan is defined by cresent of new moon. The dates for the coming years can be found on: http://en.wikipedia.org/wiki/Ramadan_%28calendar_month%29 Best regards, Erik On 02/03/13 03:20, "Paul Eggert" <eggert@cs.ucla.edu> wrote:
On 02/28/13 02:46, Erik Homoet wrote:
Morocco is also on Wintertime during the month of Ramadan.
Thank you for the heads-up. Can you please point us at a local, reliable source for this news? Presumably timeanddate.com got it from somewhere. An English-language source would be preferred, but Arabic is OK.
The Wikipedia article "Daylight saving time in Morocco" <http://en.wikipedia.org/wiki/Daylight_saving_time_in_Morocco> says "starting in 2012, clocks shall be advanced 60 minutes at 02:00 on the last Sunday of April of each year, and return to UTC at 03:00 on the last Sunday of September of the same year, with the exception of the holy month of Ramadan, during which DST will not be observed." But the sources it cites don't actually seem to say this.
Which raises the question: how is Ramadan determined in Morocco? Is it a government decree long in advance, or is it decided based on visual sightings of the crescent moon? If the latter, it's going to be hard for us to predict the daylight-saving transitions.
Erik Homoet Business Consultant quintessence consulting AMS mobile: +31 614534022 email: ehomoet@quintessence.net skype: erik_qc_ams
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it.
Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French): http://www.mmsp.gov.ma/fr/actualites.aspx?id=288 I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome.
Thanks,a lso found this very late announcement for 2012, but that is indeed too late for us. The GNU Emacs predictions are the best ones to use for this. Maybe you can make this more general because I read that more islamitic countries will or are intending to switch off DST during Ramadan. But have not seen confirmations (e.g. Iran Iraq Libanon) On 04/03/13 10:18, "Paul Eggert" <eggert@cs.ucla.edu> wrote:
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it.
Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French):
http://www.mmsp.gov.ma/fr/actualites.aspx?id=288
I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome.
Erik Homoet Business Consultant quintessence consulting AMS mobile: +31 614534022 email: ehomoet@quintessence.net skype: erik_qc_ams
this is the last FR articles about TZ on this website http://www.mmsp.gov.ma/fr/actualites.aspx?id=293 http://www.mmsp.gov.ma/fr/actualites.aspx?id=292 http://www.mmsp.gov.ma/fr/actualites.aspx?id=288 in reverse order... On Mon, Mar 4, 2013, at 10:18, Paul Eggert wrote:
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it.
Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French):
http://www.mmsp.gov.ma/fr/actualites.aspx?id=288
I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome.
On 2013-03-04 02:18, Paul Eggert wrote:
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it.
Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French):
http://www.mmsp.gov.ma/fr/actualites.aspx?id=288
I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome.
GNU Emacs predictions may be usable if they take the location dependent visibility of the new moon crescent into account (see references to Yallop's method) but if this becomes more widespread, it may be better to develop (or borrow) a script that will predict the start and end of Ramadan for any tz location.
This site appears to have useful information on which countries use calculated or observed sightings: http://moonsighting.com/methods.html This whole subject is a big can of worms, and Yallop's method is just an approximation and not accepted by all Muslims. Tim Smartcom Software Ltd Portsmouth Technopole Kingston Crescent Portsmouth PO2 8FA United Kingdom www.smartcomsoftware.com Smartcom Software is a limited company registered in England and Wales, registered number 05641521. -----Original Message----- From: tz-bounces@iana.org [mailto:tz-bounces@iana.org] On Behalf Of Brian Inglis Sent: 05 March 2013 15:09 To: tz@iana.org Subject: Re: [tz] Timezones Morocco 2013 incorrect On 2013-03-04 02:18, Paul Eggert wrote:
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it.
Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French):
http://www.mmsp.gov.ma/fr/actualites.aspx?id=288
I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome.
GNU Emacs predictions may be usable if they take the location dependent visibility of the new moon crescent into account (see references to Yallop's method) but if this becomes more widespread, it may be better to develop (or borrow) a script that will predict the start and end of Ramadan for any tz location.
Here's Her Majesty's Nautical Alamanac Office's opinion on the matter: http://astro.ukho.gov.uk/moonwatch/background.html and they point to Yallop's work here http://astro.ukho.gov.uk/download/NAOTN69.pdf and provide a handy calculator here http://astro.ukho.gov.uk/surfbin/placefinder.cgi?program=Moon_Viz&ticket=89f.... I think these visibility forecasts would be as authoritative as you can expect to get. Presumably one could try to validate the rules against these forecasts. But you are right, it's a different matter if the forecast will prove useful for one timezone or another. You can try some in Stellarium to see how hard some of those first moon sighting observations they are. On 06/03/2013 11:52 AM, Tim Thornton wrote:
This site appears to have useful information on which countries use calculated or observed sightings: http://moonsighting.com/methods.html This whole subject is a big can of worms, and Yallop's method is just an approximation and not accepted by all Muslims. Tim
Smartcom Software Ltd Portsmouth Technopole Kingston Crescent Portsmouth PO2 8FA United Kingdom
www.smartcomsoftware.com
Smartcom Software is a limited company registered in England and Wales, registered number 05641521.
-----Original Message----- From: tz-bounces@iana.org [mailto:tz-bounces@iana.org] On Behalf Of Brian Inglis Sent: 05 March 2013 15:09 To: tz@iana.org Subject: Re: [tz] Timezones Morocco 2013 incorrect
On 2013-03-04 02:18, Paul Eggert wrote:
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it. Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French):
http://www.mmsp.gov.ma/fr/actualites.aspx?id=288
I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome. GNU Emacs predictions may be usable if they take the location dependent visibility of the new moon crescent into account (see references to Yallop's method) but if this becomes more widespread, it may be better to develop (or borrow) a script that will predict the start and end of Ramadan for any tz location.
Keep in mind that new moon crescent visibility is not an accurate science. Essentially it depends of the observer' skills and his location and atmospheric conditions. Usually a new moon of less than 24h of age is considered very difficult and essentially not observable although the record is with younger moons http://aa.usno.navy.mil/faq/docs/crescent.php Since we have no idea of emacs' algorithm or how well it correlate with the observer's abilities (and it's possible the Saudi Arabian observer not be able to see it while a Marocain one could dues to the difference in longitude) I don't think that there are really reliable source other than government policy. The variety of sources Wikipedia cites for the start of Ramadan should warn us to be cautious http://en.wikipedia.org/wiki/Ramadan_%28calendar_month%29 For the record, anyone who would want to do to the math themselves is encouraged to look at Astronomical Algorithms http://www.amazon.com/Astronomical-Algorithms-Jean-Meeus/dp/0943396611 which is essentially the base book giving all the formulas used by many astronomy programs. It's more work than it looks but for predicting the moon's age you hopefully won't have to get to more than the first 1/3 of the book. On 05/03/2013 10:09 AM, Brian Inglis wrote:
On 2013-03-04 02:18, Paul Eggert wrote:
On 03/04/2013 12:52 AM, Erik Homoet wrote:
An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it.
Thanks. Last year it looks like the official announcement by the Head of Government of the Kingdom of Morocco wasn't until July 11 (for July 20 and August 20 transitions), so if we wait for something official it'll be uncomfortably close to the actual event. Here's last year's announcement (in French):
http://www.mmsp.gov.ma/fr/actualites.aspx?id=288
I'm thinking of using the GNU Emacs predictions for Ramadan for 2013-2037, whatever they are, and slapping them into the Morocco table by hand, as predictions. Any better suggestions are welcome.
GNU Emacs predictions may be usable if they take the location dependent visibility of the new moon crescent into account (see references to Yallop's method) but if this becomes more widespread, it may be better to develop (or borrow) a script that will predict the start and end of Ramadan for any tz location.
Patrice Scattolin <patrice.scattolin@oracle.com> writes:
Since we have no idea of emacs' algorithm [...]
Emacs is free software; it's possible to see what algorithm it uses by examining the (well-commented) source code: http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/calendar/lunar.el
For the record, anyone who would want to do to the math themselves is encouraged to look at Astronomical Algorithms http://www.amazon.com/Astronomical-Algorithms-Jean-Meeus/dp/0943396611
And that's exactly what Emacs' code is based on, as it happens! Thanks, -- Adam Sampson <ats@offog.org> <http://offog.org/>
On 03/06/2013 09:13 AM, Patrice Scattolin wrote:
Since we have no idea of emacs' algorithm
We have the source code, so we can get an idea. The code can be found here: http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/calendar/cal-... The function calendar-islamic-to-absolute is the key part. I read it, and found that GNU Emacs uses the most-popular arithmetical approximation to the Islamic calendar. By "most-popular" I mean that it's the approximation used by the majority of the Moslem world, according to page 84 of Dershowitz N, Reingold EM, Calendrical Calculations, 3rd ed. (2008). Cambridge University Press, ISBN 978-0-521-70238-6. Dershowitz and Reingold mention that there are other arithmetical approximations. In particular, some Microsoft products use a variant approximation. So it appears that no matter which approximation we'll use, we're bound to disagree with somebody's else's prediction. I'll soon circulate a proposed patch to the 'africa' file that makes predictions based on the GNU Emacs approximation.
On 07/03/2013 1:33 AM, Paul Eggert wrote:
On 03/06/2013 09:13 AM, Patrice Scattolin wrote:
Since we have no idea of emacs' algorithm We have the source code, so we can get an idea. The code can be found here:
http://bzr.savannah.gnu.org/lh/emacs/trunk/annotate/head:/lisp/calendar/cal-... Ah yes, lisp! http://xkcd.com/297/
Dershowitz and Reingold mention that there are other arithmetical approximations. In particular, some Microsoft products use a variant approximation. So it appears that no matter which approximation we'll use, we're bound to disagree with somebody's else's prediction. The age and position of the moon are accurate enough (even with Meeus who is accurate enough for amateur planetarium software but notably not enough for more exacting tasks). It's the criteria upon when the moon crescent is actually observable that is up for debate. Since this relies most on the observer's skills, no matter who's approximation we rely upon we can certainly get it wrong by a day on some occasions. Apparently beginning of the Ramadan is a waiting game anyways http://insidethemiddleeast.blogs.cnn.com/2012/07/19/muslims-prepare-to-obser... so I doubt we can actually do better no matter algorithm.
Erik, I agree that Ramadan is defined by the crescent of the new moon, but depending on the branch of Islam in some cases they are happy to use the predicted values, but in others it has to be observed, which can cause a difference due to either simple differences in observations or things like cloud cover. My work in this area was in software for prayer times, where this difference is taken into account - I don't know if time zones in countries are happy to use the predictions, or whether some of them use the observations. Tim Smartcom Software Ltd Portsmouth Technopole Kingston Crescent Portsmouth PO2 8FA United Kingdom www.smartcomsoftware.com Smartcom Software is a limited company registered in England and Wales, registered number 05641521. -----Original Message----- From: tz-bounces@iana.org [mailto:tz-bounces@iana.org] On Behalf Of Erik Homoet Sent: 04 March 2013 08:53 To: Paul Eggert Cc: Sascha von Gualtieri; tz@iana.org Subject: Re: [tz] Timezones Morocco 2013 incorrect Hi Paul, Law by the government is the for the long term, not having DST during Ramadan: http://support.microsoft.com/kb/2698707/en http://www.timeanddate.com/news/time/morocco-dst-2012.html http://wwp.greenwichmeantime.com/time-zone/africa/morocco/time-morocco/ http://www.worldtimezone.com/dst_news/ An official link for the announcement for this year I cannot find on official local websites but on all timezone and worldtime websites and airlines booking engines are using it. Ramadan is defined by cresent of new moon. The dates for the coming years can be found on: http://en.wikipedia.org/wiki/Ramadan_%28calendar_month%29 Best regards, Erik On 02/03/13 03:20, "Paul Eggert" <eggert@cs.ucla.edu> wrote:
On 02/28/13 02:46, Erik Homoet wrote:
Morocco is also on Wintertime during the month of Ramadan.
Thank you for the heads-up. Can you please point us at a local, reliable source for this news? Presumably timeanddate.com got it from somewhere. An English-language source would be preferred, but Arabic is OK.
The Wikipedia article "Daylight saving time in Morocco" <http://en.wikipedia.org/wiki/Daylight_saving_time_in_Morocco> says "starting in 2012, clocks shall be advanced 60 minutes at 02:00 on the last Sunday of April of each year, and return to UTC at 03:00 on the last Sunday of September of the same year, with the exception of the holy month of Ramadan, during which DST will not be observed." But the sources it cites don't actually seem to say this.
Which raises the question: how is Ramadan determined in Morocco? Is it a government decree long in advance, or is it decided based on visual sightings of the crescent moon? If the latter, it's going to be hard for us to predict the daylight-saving transitions.
Erik Homoet Business Consultant quintessence consulting AMS mobile: +31 614534022 email: ehomoet@quintessence.net skype: erik_qc_ams
Here's a proposed patch to try to address the problem with Moroccan DST. I've pushed this to the unofficial github version of the tz database. === * africa (Morocco): Use GNU Emacs 24.3 to estimate Ramadan-based DST transition dates for 2013-2038. Heads-up by Erik Homoet in <http://mm.icann.org/pipermail/tz/2013-February/018680.html>. --- africa | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/africa b/africa index f378cc4..5f4f8eb 100644 --- a/africa +++ b/africa @@ -846,6 +846,41 @@ Zone Indian/Mayotte 3:00:56 - LMT 1911 Jul # Mamoutzou # 3:00 am Friday, July 20, 2012 and will again be advanced by 60 minutes # August 20, 2012 from 2:00 am. +# From Paul Eggert (2013-03-06): +# Morocco's daylight-saving transitions due to Ramadan seem to be +# announced a bit in advance. On 2012-07-11 the Moroccan government +# announced that year's Ramadan daylight-saving transitions would be +# 2012-07-20 and 2012-08-20; see +# <http://www.mmsp.gov.ma/fr/actualites.aspx?id=288>. +# +# To estimate what the Moroccan government will do in future years, +# transition dates for 2013 through 2021 were determined by running +# the following program under GNU Emacs 24.3: +# +# (let ((islamic-year 1434)) +# (while (< islamic-year 1444) +# (let ((a +# (calendar-gregorian-from-absolute +# (calendar-islamic-to-absolute (list 9 1 islamic-year)))) +# (b +# (calendar-gregorian-from-absolute +# (calendar-islamic-to-absolute (list 10 1 islamic-year))))) +# (insert +# (format +# (concat "Rule\tMorocco\t%d\tonly\t-\t%s\t %2d\t 3:00\t0\t-\n" +# "Rule\tMorocco\t%d\tonly\t-\t%s\t %2d\t 2:00\t1:00\tS\n") +# (car (cdr (cdr a))) (calendar-month-name (car a) t) (car (cdr a)) +# (car (cdr (cdr b))) (calendar-month-name (car b) t) (car (cdr b))))) +# (setq islamic-year (+ 1 islamic-year)))) +# +# with the results hand-edited for 2020-2022, when the normal spring-forward +# date falls during the estimated Ramadan. +# +# From 2023 through 2038 Ramadan is not predicted to overlap with +# daylight saving time. Starting in 2039 there will be overlap again, +# but 32-bit time_t values roll around in 2038 so for now do not worry +# about dates after 2038. + # RULE NAME FROM TO TYPE IN ON AT SAVE LETTER/S Rule Morocco 1939 only - Sep 12 0:00 1:00 S @@ -871,10 +906,28 @@ Rule Morocco 2010 only - May 2 0:00 1:00 S Rule Morocco 2010 only - Aug 8 0:00 0 - Rule Morocco 2011 only - Apr 3 0:00 1:00 S Rule Morocco 2011 only - Jul 31 0 0 - -Rule Morocco 2012 max - Apr lastSun 2:00 1:00 S +Rule Morocco 2012 2019 - Apr lastSun 2:00 1:00 S Rule Morocco 2012 max - Sep lastSun 3:00 0 - Rule Morocco 2012 only - Jul 20 3:00 0 - Rule Morocco 2012 only - Aug 20 2:00 1:00 S +Rule Morocco 2013 only - Jul 9 3:00 0 - +Rule Morocco 2013 only - Aug 8 2:00 1:00 S +Rule Morocco 2014 only - Jun 29 3:00 0 - +Rule Morocco 2014 only - Jul 29 2:00 1:00 S +Rule Morocco 2015 only - Jun 18 3:00 0 - +Rule Morocco 2015 only - Jul 18 2:00 1:00 S +Rule Morocco 2016 only - Jun 7 3:00 0 - +Rule Morocco 2016 only - Jul 7 2:00 1:00 S +Rule Morocco 2017 only - May 27 3:00 0 - +Rule Morocco 2017 only - Jun 26 2:00 1:00 S +Rule Morocco 2018 only - May 16 3:00 0 - +Rule Morocco 2018 only - Jun 15 2:00 1:00 S +Rule Morocco 2019 only - May 6 3:00 0 - +Rule Morocco 2019 only - Jun 5 2:00 1:00 S +Rule Morocco 2020 only - May 24 2:00 1:00 S +Rule Morocco 2021 only - May 13 2:00 1:00 S +Rule Morocco 2022 only - May 3 2:00 1:00 S +Rule Morocco 2023 max - Apr lastSun 2:00 1:00 S # Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone Africa/Casablanca -0:30:20 - LMT 1913 Oct 26 -- 1.7.11.7
Hi Paul, Thanks for the update. Does this also mean that there will an updated tzdata file coming soon? Best regards, Erik On 07/03/13 07:38, "Paul Eggert" <eggert@cs.ucla.edu> wrote:
Here's a proposed patch to try to address the problem with Moroccan DST. I've pushed this to the unofficial github version of the tz database. === * africa (Morocco): Use GNU Emacs 24.3 to estimate Ramadan-based DST transition dates for 2013-2038. Heads-up by Erik Homoet in <http://mm.icann.org/pipermail/tz/2013-February/018680.html>. --- africa | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-)
diff --git a/africa b/africa index f378cc4..5f4f8eb 100644 --- a/africa +++ b/africa @@ -846,6 +846,41 @@ Zone Indian/Mayotte 3:00:56 - LMT 1911 Jul # Mamoutzou # 3:00 am Friday, July 20, 2012 and will again be advanced by 60 minutes # August 20, 2012 from 2:00 am.
+# From Paul Eggert (2013-03-06): +# Morocco's daylight-saving transitions due to Ramadan seem to be +# announced a bit in advance. On 2012-07-11 the Moroccan government +# announced that year's Ramadan daylight-saving transitions would be +# 2012-07-20 and 2012-08-20; see +# <http://www.mmsp.gov.ma/fr/actualites.aspx?id=288>. +# +# To estimate what the Moroccan government will do in future years, +# transition dates for 2013 through 2021 were determined by running +# the following program under GNU Emacs 24.3: +# +# (let ((islamic-year 1434)) +# (while (< islamic-year 1444) +# (let ((a +# (calendar-gregorian-from-absolute +# (calendar-islamic-to-absolute (list 9 1 islamic-year)))) +# (b +# (calendar-gregorian-from-absolute +# (calendar-islamic-to-absolute (list 10 1 islamic-year))))) +# (insert +# (format +# (concat "Rule\tMorocco\t%d\tonly\t-\t%s\t %2d\t 3:00\t0\t-\n" +# "Rule\tMorocco\t%d\tonly\t-\t%s\t %2d\t 2:00\t1:00\tS\n") +# (car (cdr (cdr a))) (calendar-month-name (car a) t) (car (cdr a)) +# (car (cdr (cdr b))) (calendar-month-name (car b) t) (car (cdr b))))) +# (setq islamic-year (+ 1 islamic-year)))) +# +# with the results hand-edited for 2020-2022, when the normal spring-forward +# date falls during the estimated Ramadan. +# +# From 2023 through 2038 Ramadan is not predicted to overlap with +# daylight saving time. Starting in 2039 there will be overlap again, +# but 32-bit time_t values roll around in 2038 so for now do not worry +# about dates after 2038. + # RULE NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Morocco 1939 only - Sep 12 0:00 1:00 S @@ -871,10 +906,28 @@ Rule Morocco 2010 only - May 2 0:00 1:00 S Rule Morocco 2010 only - Aug 8 0:00 0 - Rule Morocco 2011 only - Apr 3 0:00 1:00 S Rule Morocco 2011 only - Jul 31 0 0 - -Rule Morocco 2012 max - Apr lastSun 2:00 1:00 S +Rule Morocco 2012 2019 - Apr lastSun 2:00 1:00 S Rule Morocco 2012 max - Sep lastSun 3:00 0 - Rule Morocco 2012 only - Jul 20 3:00 0 - Rule Morocco 2012 only - Aug 20 2:00 1:00 S +Rule Morocco 2013 only - Jul 9 3:00 0 - +Rule Morocco 2013 only - Aug 8 2:00 1:00 S +Rule Morocco 2014 only - Jun 29 3:00 0 - +Rule Morocco 2014 only - Jul 29 2:00 1:00 S +Rule Morocco 2015 only - Jun 18 3:00 0 - +Rule Morocco 2015 only - Jul 18 2:00 1:00 S +Rule Morocco 2016 only - Jun 7 3:00 0 - +Rule Morocco 2016 only - Jul 7 2:00 1:00 S +Rule Morocco 2017 only - May 27 3:00 0 - +Rule Morocco 2017 only - Jun 26 2:00 1:00 S +Rule Morocco 2018 only - May 16 3:00 0 - +Rule Morocco 2018 only - Jun 15 2:00 1:00 S +Rule Morocco 2019 only - May 6 3:00 0 - +Rule Morocco 2019 only - Jun 5 2:00 1:00 S +Rule Morocco 2020 only - May 24 2:00 1:00 S +Rule Morocco 2021 only - May 13 2:00 1:00 S +Rule Morocco 2022 only - May 3 2:00 1:00 S +Rule Morocco 2023 max - Apr lastSun 2:00 1:00 S
# Zone NAME GMTOFF RULES FORMAT [UNTIL] Zone Africa/Casablanca -0:30:20 - LMT 1913 Oct 26
Erik Homoet Business Consultant quintessence consulting AMS mobile: +31 614534022 email: ehomoet@quintessence.net skype: erik_qc_ams
On 03/07/13 02:51, Erik Homoet wrote:
Does this also mean that there will an updated tzdata file coming soon?
That's the idea, yes. No schedule is set, but there should be something soon. This is the time of year when new releases are common.
participants (8)
-
Adam Sampson -
Brian Inglis -
Erik Homoet -
Patrice Scattolin -
Paul Eggert -
Sebastien WILLEMIJNS -
SM -
Tim Thornton