Customers who bought this book also bought:
Reviews
Amazon.com Lance Latham's Standard C Date/Time Library aims to solve the problem with time and calendars on computers. This book publishes the author's C library with functions (included on CD-ROM) for many of the world's calendars, interspersed with some truly fascinating historical material that makes sense of humankind's myriad attempts to get a handle on time. The Standard C Date/Time Library begins with a description of the Y2K problem. The author then proceeds to show that definitions of years, months, and days are subject to different standards, many of which are the result of "applied astronomy." He develops his comprehensive solution using the Julian calendar and represents hours and minutes as fractions of days. His Standard C Date/Time Library (STDTL) offers extremely comprehensive functionality, allowing you to calculate differences between days and days of the week, as well as calculations for holidays. The author intersperses source code listings with wide-ranging descriptions of calendars and their inconsistencies. For the treatment of the Western calendar and ISO 8601 standard time functions, this code library is worth it. However, the author goes much further and offers code for and descriptions of all the major calendars of the world, including non-Western calendars and ancient calendar systems. --Richard Dragan Book Description Does the year 2000 have you sweating late-night code? Use our complete library of C programming functions to master 'Y2K', time on the net, ISO 8601, time stamp compression, or any other time/date application you encounter. Using the astronomers' Julian Day calendar as a common denominator between the world calendars, Lance Latham has solved the conversion of virtually all the world calendars (including the Chinese!). Need to convert dates in the Maya calendar to equivalent dates in the Egyptian calendar? Plug in the modules, write a few lines of code, and away you go! The toolkit provides all of the basic Western calendar/clock applications (written in clear, straightforward C) and designed to fit into your application with a minimum of fuss. You'll learn to create tools that update system clocks for the twice-yearly time change, synchronize networked systems across time zones, and convert date stamps between the various calendar systems of the world. Delphi and VB programmers will find Windows DLLs for Gregorian and Julian calendar functions on the CD-ROM. A bonus: after you've solved all of your worldly time and date problems you can play with the calendar for Mars to test your knowledge of universal calendar principles! Synopsis Lance Latham provides a library of C programming functions that constitute a complete date and time toolkit. He details the Julian calendar and the calendars of most major cultures of the world, and he supplies the historical knowledge necessary to determine the rules of use and the range of problems that programming a solution must address. About the Author Lance Latham is the principal of Resource Management Systems, Inc., a software development firm in McAllen, Texas, and has been programming on a wide range of platforms for three decades. Although he has programmed in more languages than he wants to count, Lance now primarily codes in C for developing systems that manage critical resources in enterprises ranging from health care to jewelry marketing. Back to C \ C++ : Programming
Back to C and C++
Back to Main Index
|