Re: time storage

2006-01-28 Thread Terry Ford
On 28-Jan-06, at 5:05 PM, Phil M wrote: On Jan 28, 2006, at 3:28 PM, Terry Ford wrote: Personally I would do a full Date-Time for every employee in and out. What is really the most important is not the time punch but the difference between the in and out. This is most easily calculated

Re: time storage

2006-01-28 Thread Phil M
On Jan 28, 2006, at 3:28 PM, Terry Ford wrote: Personally I would do a full Date-Time for every employee in and out. What is really the most important is not the time punch but the difference between the in and out. This is most easily calculated by using the Date.TotalSeconds property:

Re: time storage

2006-01-28 Thread Terry Ford
On 28-Jan-06, at 2:19 PM, Phil M wrote: Personally I would do a full Date-Time for every employee in and out. What is really the most important is not the time punch but the difference between the in and out. This is most easily calculated by using the Date.TotalSeconds property: But i

Re: time storage

2006-01-28 Thread Phil M
On Jan 28, 2006, at 1:47 PM, [EMAIL PROTECTED] wrote: I want to save a time to a data an array of items, and save it to a database. There is a time field in the db, and a date data type, but suppose I open the data base and want to get the times out of it, what kind of place do I put them?

Re: time storage

2006-01-28 Thread GAmoore
> > ... I can have integer, date, single, and string data and so  > > forth, but there > > is no 'time' type of data field to put in a class? > > REALbasic dates objects always have a date, you cannot just assign  > the time value.  However, the actual date really doesn't matter, so  > you can ma

Re: time storage

2006-01-28 Thread Terry Ford
On 28-Jan-06, at 12:12 PM, Mathieu Langlois wrote: You can use the TotalSeconds property from date objects, which is a double. This is the basic property from date objects, all other calculations and properties are based on that value. So you can reconstruct a date object exactly with just tha

Re: time storage

2006-01-28 Thread Mathieu Langlois
You can use the TotalSeconds property from date objects, which is a double. This is the basic property from date objects, all other calculations and properties are based on that value. So you can reconstruct a date object exactly with just that property. Math On 1/28/06, [EMAIL PROTECTED] <[EMAI

Re: time storage

2006-01-28 Thread Phil M
On Jan 28, 2006, at 11:54 AM, [EMAIL PROTECTED] wrote: I want to store the time and date of something. A database can store a date and a time type field which is fine. I see that a date type of data willl store both too (e.g. d.shortdate or d.shorttime). But how can I put a date in a class?