与 Olson TZ 数据库同步
我正在设计一个日历应用程序,
我发现为了至少能够正确处理未来的事件,我需要 Olson 数据库中的数据。 我还发现我想将它存储在我自己的数据库表中,并定期将该表与 Olson 数据库同步。
这种同步的好方法是什么?
- 有人知道用于将 Olson 文本文件转换为数据库表的现成组件吗?
- 我听说这些数据已经以某种方式嵌入到 UNIX 系统中。这是真的吗?有没有一种简单的方法将数据从unix获取到数据库?
- 使用 Olson 文件的“编译”版本会有帮助吗?
- 任何其他想法都欢迎
我们正在使用 php、Yii、mysql
(我知道 夏令时和时区最佳实践主题,以及许多其他相关问题,但没有找到这个特定问题的答案)
I'm designing a calendar application
I figured out that to work correctly with at least future events, I need the data in the Olson db.
I also figured out that I want to store it in my own db table, and synchronize this table with the Olson db periodically.
What would be a good approach for this synchronization?
- Anybody aware of a ready component for converting the Olson text files into a db table?
- I heard about this data being already embedded in some way into unix systems. Is this true? Is there an easy way to get the data from unix to the DB?
- Will using the "compiled" version of the Olson files be helpful?
- any other ideas are wellcome
We are working with php, Yii, mysql
(I'm aware of the Daylight saving time and time zone best practices thread, and many other related questions, but didn't find an answer to this particular question)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此博客条目是关于为 Zend Framework 创建 iCalendar 组件。当谈到时区定义时,他的解决方案是将 Olson TZ 数据库 与 < a href="http://code.google.com/p/tzurl/" rel="nofollow">vzic,它将 Olson 时区转换为 iCalendar 时区。
This blog entry is about creating an iCalendar component for the Zend Framework. When it came to Time Zone definitions, his solution was to use the Olson TZ database together with vzic, which converts the Olson timezones to iCalendar timezones.