Article Preview
Buy Now
COLUMN
Dating 101
Working with Dates and Times
Issue: 7.2 (January/February 2009)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 17,424
Starting Page Number: 42
Article Number: 7212
Resource File(s):
7212.zip Updated: 2009-01-02 12:22:34
Related Web Link(s):
http://www.rbdeveloper.com/browse/5.5/5510/
http://en.wikipedia.org/wiki/Calendar_date
Excerpt of article text...
Many years ago I had an idea for a scheduling application. When I began mentally working out the details, however, I was overwhelmed by the complexity of what seemed so simple. Working with dates and times is not as easy as it sounds. Remember all the date chaos associated with the transition to the year 2000?
I never wrote that scheduling app (it's still on my idea plate, so who knows), but I find it interesting that so many other apps I've written have involved dates and times and some of the issues I found too complex in that schedule app. For example, I have a "simple" blogging app I originally wrote in 1999 and have updated over the years (and still use for maintaining my personal website). I never thought about a blogging app as being particularly date/time related, but of course, it is: blog posts must be sorted in chronological order, different date display formats can be used in different parts of the program, and so on.
REALbasic's
date
class is a powerful class for working with dates and times. However, those new to REALbasic often expect it to do more than it can, or aren't sure, exactly, how to work with it. In today's lesson we'll explore working with dates and times in REALbasic.
...End of Excerpt. Please purchase the magazine to read the full article.