Join Amazon Prime and get unlimited Free One-Day Delivery. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
12 used & new from £32.29

Have one to sell? Sell yours here
 
   
Standard C Date/Time Library: Programming the World's Calendars and Clocks
 
 

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

by Lance Latham (Author) "The Standard C Date/Time Library (SCDTL) is a collection of functions, written in the C language, related to date and time applications and designed to..." (more)
5.0 out of 5 stars See all reviews (5 customer reviews)
Price: £40.91 & this item Delivered FREE in the UK with Super Saver Delivery. See details and conditions
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In stock.
Dispatched from and sold by Amazon.co.uk. Gift-wrap available.

Only 1 left in stock--order soon (more on the way).

Want guaranteed delivery by Tuesday, July 21? Choose Express delivery at checkout. See Details
8 new from £38.13 4 used from £32.29

Product details

  • Paperback: 576 pages
  • Publisher: R & D; Pap/Dis edition (Jan 1998)
  • Language English
  • ISBN-10: 0879304960
  • ISBN-13: 978-0879304966
  • Product Dimensions: 22.4 x 18 x 3.8 cm
  • Average Customer Review: 5.0 out of 5 stars See all reviews (5 customer reviews)
  • Amazon.co.uk Sales Rank: 1,234,082 in Books (See Bestsellers in Books)
  • See Complete Table of Contents

Customers Viewing This Page May Be Interested in These Sponsored Links

  (What is this?)
C++Builder | Visual IDE
   www.Embarcadero.com    RAD Visual IDE for rapid C and C++ Development. More info. Free trial 
Learn C Programming
   www.e-learningcenter.com    Basic-Advanced Programming Courses Easily Learn to Program in C -Fast! 
Beken of Cowes Calendars
   www.SailingCalendars.co.uk    World-famous Sailing Calendars Now Available Printed with Your Logo 
  
 

Product Description

Product Description
Covering how to synchronize networked systems across time zones, the best way to convert date stamps between the various calendar systems in the world, this text includes solutions to common date/time problems and covers calendars of most cultures (including historical).

From the Author
Overview of SCDTL
SCDTL is a complete, integrated tool kit of C functions and data structures for dealing with date/time applications.

We deal with many issues, such as Y2K, compression and ISO 8601 document concerns, as well as about 30 different calendars.

The treated calendars include Gregorian (historical and proleptic), Julian (historical and proleptic), Roman republican, Egyptian Solar, Coptic, Islamic (astronomical and civil), Jewish (Hebrew), Maya, Indian civil, Nabonassar Era, Armenian, Khwarizmian (Chorasmian), Alexandrian, Ethiopic, Macedonian, Syrian, Persian Solar, Persian Mobile, Zoroastrian, Baha'i (and Badi), Chinese, French Revolutionary (Republican), International Fixed Calendar, The World Calendar, Positivist, Peter Meyer's "Goddess Lunar Calendar" and Jalali.

Also included is a calendar (and clock) for the planet Mars.

The discussions of historical background are fairly extensive.

Where days of observance are of importance, discussion and code is provided. The Jewish calendar covers many days of observance, as well as functions for Yahrzeit, bar mitzvah, etc.

SCDTL uses the Julian Day number (JD#) system as a linear scale for performing date/time math. As a consequence, most of the difficult date/time problems, such as calendar conversions, are reduced to a few lines of code.

To convert a date in calendar A to an equivalent date in calendar B means writing C code in an application of the following form:
jd = date_A_to_JD0 (&date_A);
date_B = JD0_to_Date_B (jd);

Since the JD# system ties date and time together, the tedious conversions are eliminated.

SCDTL likewise eliminates the necessity of 'rolling your own' code when considering common problems such as day of the week. Surprisingly, a good many of the accepted solutions for this and related problems contain bugs, or are severely limited in range.

The 'Millennium' problem has made one issue very clear - date/time code appears in virtually every program. And, it is easy to make simple and costly mistakes in this area. SCDTL solves this problem.

The style of SCDTL is very simple to use. It was deliberately written to be read, and the code can be used in a 'canned' way, even by novices.

I am interested in feedback. I continue to collect calendar algorithms for more esoteric and historical calendars. Right now, I am looking for more information on the Vietnamese, Japanese, various Thai and Burmese and traditional Indian 'astrological' calendars. I also want some more information on the vagaries of the regional medieval European calendars. It is my intention that SCDTL be 'one stop shopping' for all date/time applications.

I will be setting up a Web page in the near future. The page will be a forum for date/time issues, and serve as a staging area for supplementary date/time code as it becomes available. SCDTL is HUGE (about 4200 pages), with much of the material on CD-ROM. There are 191 test programs, e.g., that exercise every function and demonstrate its use.

Talk to me, at <rms@hiline.net>. It's about time.


Inside This Book (Learn More)
First Sentence
The Standard C Date/Time Library (SCDTL) is a collection of functions, written in the C language, related to date and time applications and designed to work as an integrated whole. Read the first page
Explore More
Concordance
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
Check a corresponding box or enter your own tags in the field below
calendrics

Your tags: Add your first tag
 

 

Customer Reviews

5 Reviews
5 star:
 (5)
4 star:    (0)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
5.0 out of 5 stars (5 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
2 of 2 people found the following review helpful:
5.0 out of 5 stars A truly encyclopaedic work, 29 Dec 1998
By A Customer

"Standard C Date/Time Library: Programming the Worlds Calendars and Clocks" is the most definitive work on the subject yet published. At nearly 600 pages, you might think that a certain amount of overkill has been applied to Y2K and leap year computation -- this is not so. Actually, the first 100 pages take you through Y2K and all of the basic drudgery of date mechanics that so many of us programmers fail: date differences, day-of-week, leap year, and related functions. As a programmer with some years experience in medical records processing, I've written my share of these functions in the past. Latham's minimalist coding style insures that subset of C language used in his implementation is fairly the same as you would see in most other procedural langauges.

The author goes beyond mere calculation and takes us through millenia of thinking and research on how to represent this intangible yet merciless dimension known as "time". Basic concepts such as what defines a day (there are three different definitions in practice) and how the most critical yardstick - the length of a year - has been measured. The book is crammed full of such trivia as attempts to redefine the months of the year and seven day week by cultures from the French revolutionaries to communist Russia. Even the Martian year and attendant time units are given a thorough treatment. This material along with the mechanics of many other calendar systems including Hindu, Egyptian, Mayan, Jewish, and occupies somewhat more than half the book in total. If you need even one of these calendars, the book has more than paid for itself in hours of research and travel you would need to complete the task yourself.

Considerable detail is given over to calculations and historical methods of producing dates of observance. For example, the precise date of Easter as it is observed is one such problem. Other issues involve other moveable holidays which are dependent on eachother, requiring a backsolving approach. This can occur in parts of the Christian Advent calendar. Much of this is material to makers of PIMs and paper calendars (e.g. Daytimers(tm)). However, with my background in the mundane world of medical records, whether a patient was discharged on Thanksgiving or born on Christmas never entered into the calculations of fees for service. Presumably, this detail could be used in payroll calculation programs although many companies change holiday observance policies annually. For example, when Christmas falls on a Thursday, some companies will award Dec. 26th as an additional day off while others strictly don't.

My only issue of contention with this well-researched work is the titular notion of "Standard Date/Time Library". This is not a treatise on ANY existing standard, such as that covered in P.J. Plauger's "Standard C Library". In my opinion, anything which includes "Standard" in the title should have as its purpose the examination of an ANSI/ISO work as its focus. Rather, it is "Latham's Own Implementation" and not a proposed or pending standard. However, if any of the date calculation topics are of interest, I know you'll like this book.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
2 of 2 people found the following review helpful:
5.0 out of 5 stars A superb handbook for date/time programming, 4 Dec 1998
By A Customer
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.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
1 of 1 people found the following review helpful:
5.0 out of 5 stars Standard C Date/Time Library (SCDTL), 27 Nov 1998
By A Customer
I must admit that I'm not a programmer any more but I have read Lance's impressive book as I'm very interested in calendar problems. The book reveal Lance as an extremely competent programmer who writes his program codes in an easily understandable form ready for use for many date/time purposes.

Not often do one see date/time routines combined with the historical background of the calendars and their problems and again, Lance reveal himself as an expert in calendars from many, many countries in his discussion of the calendars. The description of the various calendars shows his deep understanding of the problems his codes solves. Included is a CD-ROM with the entire text of SCDTL, program codes, explanations and many calendar details that are not listed in the book.

It has been a pleasure to read the book and learn from it.

Toke Nørby

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars More than just algorithms
This isn't merely a list of algorithms (though the number of included date/time programs is extensive); it gives a background and an explanation for the major calendar systems... Read more
Published on 19 Jan 1999

5.0 out of 5 stars Exhaustive book on calendar history and calculations
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... Read more
Published on 24 Aug 1998

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Look for similar items by category


Feedback


Mapping Time: The Calendar and...

Mapping Time: The...

The passage of day followed by night is so definite that few of us... Read more
£20.90

Find similar items

 

Make A Wish

Get what you want with an Amazon.co.uk Wish List Make sure you always get what you want with an Amazon.co.uk Wish List.

More info on Wish Lists

 

Boys Smell

Lynx Africa Body Spray and After Shave Gift set
But we make sure they smell good...

Discover male grooming at Amazon.co.uk

 

Treat Someone

Amazon.co.uk Gift Certificates--available in any amount from £5 to £500 With an Amazon.co.uk Gift Certificate, you can get them what they want (even if you don't know what that is).

Learn more about Gift Certificates

 
Ad

Where's My Stuff?

Delivery and Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue Shopping: Top Sellers

amazon.co.uk Amazon Home
International Sites:  United States  |  Germany  |  France  |  Japan  |  Canada  |  China
Business Programs: Sell on Amazon  |  Fulfilment by Amazon  |  Join Associates  |  Join Advantage
Customer Service  |  Help  |  View Basket  |  Your Account
About Amazon.co.uk  |  Careers at Amazon
Conditions of Use & Sale |  Privacy Notice  © 1996-2009, Amazon.com, Inc. and its affiliates