Home :: Books :: Computers & Internet  

Arts & Photography
Audio CDs
Audiocassettes
Biographies & Memoirs
Business & Investing
Children's Books
Christianity
Comics & Graphic Novels
Computers & Internet

Cooking, Food & Wine
Entertainment
Gay & Lesbian
Health, Mind & Body
History
Home & Garden
Horror
Literature & Fiction
Mystery & Thrillers
Nonfiction
Outdoors & Nature
Parenting & Families
Professional & Technical
Reference
Religion & Spirituality
Romance
Science
Science Fiction & Fantasy
Sports
Teens
Travel
Women's Fiction
Standard C Date/Time Library: Programming the World's Calendars and Clocks

Standard C Date/Time Library: Programming the World's Calendars and Clocks

List Price: $49.95
Your Price: $36.04
Product Info Reviews

<< 1 >>

Rating: 2 stars
Summary: Beware: bugs ahead!
Review: I purchased this book out of interest, but then, as always, there comes a time when you reach for a reference book to help out when you need something coded. Well, that's what I did, and unfortunately the book has basic errors in its Julian to Gregorian conversion routine. Minor, I know, but this book is billed as "the Y2K buster" to get on the bandwagon, but the supplied (tested! hah!) routines don't actually work.

I went to the support web site to look up or report this errata. It's gone. Unforgivable. The correct algorithm is available from (the U.S. Naval Observatory's website). The transcription error from this algorithm in Fortran to C is minor, but enough to get me irate. A book that is sold on accuracy and Y2K busting should get dates right. You'd have thought that given a function and it's inverse, that the author would have checked that f(f^-1(x)) == x and f^-1(f(x)) == x. But no...

Apart from that, you'll never use many of the other calendric functions. My faith in this tome is severly shaken.

Rating: 2 stars
Summary: Beware: bugs ahead!
Review: I purchased this book out of interest, but then, as always, there comes a time when you reach for a reference book to help out when you need something coded. Well, that's what I did, and unfortunately the book has basic errors in its Julian to Gregorian conversion routine. Minor, I know, but this book is billed as "the Y2K buster" to get on the bandwagon, but the supplied (tested! hah!) routines don't actually work.

I went to the support web site to look up or report this errata. It's gone. Unforgivable. The correct algorithm is available from (the U.S. Naval Observatory's website). The transcription error from this algorithm in Fortran to C is minor, but enough to get me irate. A book that is sold on accuracy and Y2K busting should get dates right. You'd have thought that given a function and it's inverse, that the author would have checked that f(f^-1(x)) == x and f^-1(f(x)) == x. But no...

Apart from that, you'll never use many of the other calendric functions. My faith in this tome is severly shaken.

Rating: 4 stars
Summary: Julian Day to Gregorian bug clarified
Review: I'd like to clarify the bug that was reported in an earlier review. The bug is in JD0_to_gregorian. Don't worry, though. You can just use JD0_to_gregorian_proleptic which works just fine! The strange thing is even the comments say the 2 functions are identical. I suggest copying the code of the proleptic version to JD0_to_gregorian because a lot of other functions call into it, such as JD0_to_date. It's odd that just this one function has a bug (and a very pivotal function at that) because everything else seems to work great.

Otherwise the book is very complete and has a lot of interesting explanations of different calendars. It even has moon functions, although they are limited to about +/- 100 years from AD 2000 (it says the full versions are too processor intensive). Great book!

Rating: 5 stars
Summary: More than just algorithms
Review: If you are a computer programmer, don't write any (more) date/time code until you see how Lance Latham does it! This book contains comprehensive, organized solutions to all the date/time problems you are likely to encounter, including tricky ones such as "What is the date N days after date X?," "How many days, exactly, are there between date X and date Y?," and even "What is my client's holiday schedule next year?"

Even if you think you already have an adequate library of date/time code in your shop, don't be too sure until you've tested it using the methods illustrated in Lance Latham's own test programs, included in the CD that accompanies the book. The Year 2000 bug is not the only one infesting date/time code!

For programmers with historical, international, or religious calendar problems to solve, this book is an invaluable reference for a wide range of past and present calendars and timekeeping systems. Lance Latham also includes a section on the forward-looking ISO 8601 standard, which is enjoying increasing usage in Europe.

I recommend this book even if you write computer programs in some language other than C. The routines in this book are easy to translate into other languages, even for programmers with only a "reading" knowledge of C. The correct usage of the routines is exhaustively documented, with all parameters, returns, and limitations spelled out for you. Whichever language you use, following Lance Latham's approach will lead to concise, fast, and reliable code.

My only caveat about this book is that the algorithms underlying the routines are not always adequately explained. Sometimes we are told no more than that an algorithm is a "standard Gregorian proleptic calendar conversion routine." Testing will verify that it does somehow give the correct results, but you may still be tempted to spend hours studying it to figure out how it works.

Rating: 5 stars
Summary: Standard C Date/Time Library (SCDTL)
Review: This thick book is heavy in research. Not only does it have much hard to find historical data about many of the world's calendars, but it contains exhaustive details on the calculations (with computer algorithms). Although there is some Y2K stuff - this is not the emphasis of the book. Much more importantly this book should be on the reference list of everyone interested in the history and exact details of almost all the world's calendars, ancient and modern. So much stuff that it would take years to research. Simply, a very excellent book for anyone the least bit interested in date and time calculations!!

The author, Lance Latham, is also easy to reach via e-mail and always responsive to questions and comments on calendar and time issues.

Another excellent book along the same lines is Calendrical Calculations by Nachum Dershowitz and Edward M. Reingold, but does not cover as much history and as many calendars as Latham's book.

Review by Ira J. Lund, author of the Universal Calendar Calculator.

Rating: 2 stars
Summary: Beware the legal conditions
Review: When I looked at this book, I checked the terms and conditions on using the code, and bascially, those Ts&Cs say "thou shalt not alter a darn thing in the code". I think those who attempt to fix bugs in it should be very wary -- the licence as I read it (but I'm not a lawyer) said that you could do nothing with it. And the licence makes it difficult to read it as well -- see for example a search at ... with key words Latham Standard Date, news group comp.std.c, and a date range from say 2000-01-01 to 2002-12-31 will pick up three different threads mentioning this issue.

Rating: 2 stars
Summary: Beware the legal conditions
Review: When I looked at this book, I checked the terms and conditions on using the code, and bascially, those Ts&Cs say "thou shalt not alter a darn thing in the code". I think those who attempt to fix bugs in it should be very wary -- the licence as I read it (but I'm not a lawyer) said that you could do nothing with it. And the licence makes it difficult to read it as well -- see for example a search at ... with key words Latham Standard Date, news group comp.std.c, and a date range from say 2000-01-01 to 2002-12-31 will pick up three different threads mentioning this issue.


<< 1 >>

© 2004, ReviewFocus or its affiliates