Inside Time Matters - Chapter 5 Added
Written by Steve Stockstill   

Download Inside Time Matters

NEWS: Chapters 4  & 5 Just Added

To thank the Time Matters community for another successful year, Data Equity is making available the first five chapters of our new book, Inside Time Matters: An Insider's Guide to Maximizing the Underlying Technology in Time Matters.


This book represents a compilation of the best articles posted on our PracticeBetter.com blog site as well as fresh content provided by author Steve Stockstill.


We hope that you find this information useful. The remaining chapters will be available in early 2010. The final e-book will be free. Printed versions will be available for the cost of printing via our online publisher, lulu.com.

 
Inside Time Matters: Dates and Times II
Written by Steve Stockstill   

We covered an introduction to the way Time Matters internally saves dates in a much earlier blog article. Even though I have a date converter (at the bottom of the page here) I wanted to go a bit deeper with this article to include examples of converting dates and times in common applications.

Most of the internal system dates and times in the Time Matters database are stored as an integer. In fact, the only dates and times stored as plain text are user defined date and time fields in the form styles.

There are several technical benefits to using integer based dates and times, primarily date/time math operations as well as an avoidance of the Y2K crisis. We'll skip most of the negatives since we cannot do anything about them (and I like to keep it positive). Let’s focus on how to make something useful and human readable from these integers.

Integer based dates and times are used throughout Time Matters and always on forms with Date and Time fields in area one. User defined areas on forms will never use integer based dates and times, they are plain text and therefore do not require any conversions.


Area 1 is an example of integer based dates and times.

 


User defines areas never use integer based dates and times.

 

Understanding Dates

The integer format that Time Matters dates use assumes a value of 1 being equal to 12/29/1800. Knowing this, we can perform conversions in various environments by normalizing the date math as follows:

 

SQL Server Inline Query Date Formula


CONVERT( VARCHAR(10), DATEADD(day, bil_ [TMIntegerDate] - 4, '1801-01-01'), 126)

This example will return a date converted and formatted as  yyyy-mm-dd. The DATEADD function performs the conversion from an integer to an SQL DateTime format. The CONVERT function allows the date to be displayed in the simple yyyy-mm-dd format. Limiting the VARCHAR to 10 characters allows only the first 10 characters of the resulting DateTime format to be returned.

 

Excel Date Formula


ExcelDate = [TMIntegerDate] - 3161

For Excel, "Day 1" is 01-01-1900 so the difference between the TM "Day 1" and the Excel "Day 1" is 3,161. The resulting column should be formatted as a date for appropriate viewing in Excel.

 

Crystal Reports Date Formula Field


DATE(1800,12,28) + {[TMIntegerDate]}

Relatively simple and straightforward, in Crystal Reports simply create a formula field for the date and use the format shown here. The resulting value can be sorted or grouped in native Crystal Reports format.

 

Understanding Times

Times in Time Matters are very simple to understand and represent the number of "ticks" since midnight. Each tick has a value of 100 per second. Consider the following examples: 100 = 1 second, 6,000 = 1 minute, 360,000 = 1 hour, 8,640,000 = 1 day.

 

SQL Server Inline Query Time Formula


LTRIM( RIGHT( CONVERT( VARCHAR(20), DATEADD(ms, [TMIntegerTime]* 10, 0),  22), 11) )

This example will return a time converted and formatted as  hh:mm:ss xm. The DATEADD function performs the conversion from an integer to an SQL DateTime format. The CONVERT function allows the time to be displayed in the simple format. In this example the LTRIM and RIGHT functions are used to truncate the date portion of the result.

LEFT( CONVERT (VARCHAR(8),  DATEADD(ms, [TMIntegerTime] * 10, 0), 8), 5)

This example will display the result as hh:mm in 24 hour format.

 

Excel Time Formula


ExcelTime = ([TMIntegerTime]-1) / 3161

For Excel, time is measured in a fraction of a day and therefore represents the decimal portion of a DateTime formula. The resulting column should be formatted as a time for appropriate viewing in Excel.

 

Crystal Reports Time Formula Field


TIME( ([TMIntegerTime]-1) / 8640000 )

Similar to Excel, Crystal uses a percentage of a day to derive the time value. In Crystal Reports simply create a formula field for the time and use the format shown here. The resulting value can be sorted or grouped in native Crystal Reports format.

 

 
Steve Stockstill Joins Advologix LLC
Written by Steve Stockstill   

I am very pleased to announce that I have accepted the position of Chief Technology Officer (CTO) for Advologix, Inc. , the best cloud-based Practice Management Solution on the market. Having spent several years studying the technology of this market, and over the last year having become acquainted with the team at Advologix, I am extremely excited to be a part of the team that I believe is the leader in helping to shape the future of this industry.

I thoroughly enjoy working with the consultants in our community, and although I have resigned my certification as a LexisNexis Certified Consultant (due to potential conflicts of interest), Data Equity remains committed to our Time Matters add-on products. We will continue to develop and support our product portfolio. I will also continue to provide technical consulting services to my existing clients.

As much as I have enjoyed the 10+ years of LexisNexis Time Matters experience, I sincerely look forward to helping shape Advologix and the future of our industry. I would like to share with you a few reasons why I am excited about the position with Advologix:

1. The Team
I was immediately impressed with the management team at Advologix. Founders Paul Deschenes and Jonathan Reed have a proven track record and are the consummate professionals.

2. The Product and Model
Acceptance of “the cloud” has moved beyond “early adopter”. Data Equity has always been focused on developing software for mobile and online platforms. Joining AdvologixPM supports and further develops my ability to embrace this core vision.

3. The Platform
Established software companies often lack the agility to move an existing desktop platform to the cloud. AdvologixPM was designed for, and built from the ground up, on the Salesforce.com platform and inherits the absolute best of breed cloud technology.

4. The Future
The AdvologixPM platform offers consultants and developers the most reliable, secure, robust, and extensive platform for developing online Practice Management solutions.

I am truly committed to this technology and sincerely excited to be moving into this new position. I especially appreciate the valuable relationships I have made as a consultant and hope you will allow me to stay in touch with you in the future. Please follow me on my Force4Law.com blog as I begin to introduce the benefits and opportunities AdvologixPM offers the legal community. Feel free to give me a call or email me with any questions you might have.


 
XpressDox - Limited Special Offer
Written by Steve Stockstill   

I thought this might be useful news to the community.

From the XpressDox web site....

We’re giving away up to 10 licenses PER small office or department on a first come, first served basis. This would normally cost up to $1,490 but it could be yours absolutely free!

How do you qualify? Submit your details below before 31 May 2010 to stand in line for up to 10 XpressDox licenses for your small office or department.

But please hurry! We have only a limited number of licenses to give away before 31 May 2010.


 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 16

Site News

Sponsor Spotlight

Hosted By Site5.com

Site 5 Offers a phenomenal deal: 750GB disk space, 7.5TB bandwidth, unlimited domains, $5 a month.

Archives

Blog Archives

Sponsor Spotlight

  Your Advertisement Here

Blog Archives

Links

Sponsor Spotlight

Your Advertisement Here

External Links