Re: glib time functions



* Robert Brady (robert suse co uk) wrote at 02:05 on 30/11/00:
> On Thu, 30 Nov 2000, Ali Abdin wrote:
> 
> > No I couldn't.
> 
> Exactly. Makeing a generic interface for this will be hard.
> 
> datetime_to_islamic_date(&datetime, &islamic_date);
> 
> islamic_data = 
>   { { G_DATE_PROBABLY,
>       { G_Ramadan, 1, 1000 }
>     },
>     { G_DATE_PERHAPS,
>       { G_Ramadan, 2, 1000 }
>     }
>     { G_DATE_ONCE_IN_A_BLUE_MOON,
>       { G_Ramadan, 3, 1000 }
>     }
>     { G_DATE_IF_THERES_JUST_BEEN_A_BIG_VOLCANIC_ERUPTION,
>       { G_Ramadan, 10, 1000 }
>     }
>   };
> 
> ?

I don't understand the above.
 
> > But this "date" issue has been happening ever since 1421 AD. I was surprised
> > that the algorithm I have implemented didn't take in the "off by one" errors
> > that could happen each year, this tells me there is something "funny" going on
> > wiht the Islamic calendar, that makes this calendar somewhat accurate.
> 
> Yeah, it always keep sync with years, it just drifts back and forth a day 
> or two...
> 
> One other problem, is that until the algorithm's data table gets updated
> whenever the moon is seen, this breaks for the current month.

I'd say ignore it (at least for the time being). Or have a function which we
can set for "early" ramadan or "normal" ramadan schedule or "late" ramadan
schedule. Then GLib could handle it internally.
 
> Like timezones, but worse.

Now lets try to picture Islamic calendar support taking timezones into account
*shudder*

Regards,
Ali




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]