| |||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Database Tips: Use UTC Time Fields for Your Time-based DataIf you are working with date time fields and care about business hours between 7am and 7pm (or slightly later) only, then regular date time fields with local time will be fine. But if your clock runs 24 hours and/or 7 days a week, and you cover multiple time zones, or have daylight wasting time, then you need to be careful. Real-world examples of such environments include air travel, factory processing, and energy billing. You will need two date time fields in your database. One with the local time, and one with the time in UTC (Universal Time Coordinates). UTC is what we used to call Greenwich Mean Time (GMT). There are two hours a year when you cannot do accurate time variance calculations using local time only. These are the hours when daylight wasting moves forward and back--they will make these calculations wrong. You need an equivalent period without the daylight wasting component. UTC is the solution to this. But should you express time in the 12 hour format or the 24 hour format? Here are some considerations:
So, keep in mind that the better clock format may be the wrong choice. Find out if there's a strong dislike for the 24 hour time format before implementing it.
This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd. It may be freely copied and distributed as long as the original copyright is displayed and no modifications are made to this material. Extracts are permitted. The names Crystal Reports and Seagate Info are trademarks owned by Business Objects. |
Tuning, tweaking, optimizingGet your database tuned, tweaked, and optimized by using Report Analyzer to look for anomalies. Originally designed just for Crystal Reports, Version 5 allows you to analyze any data source or file system. |
|
|
|