You want seconds since epoch.
Sincerely,
Donovan> ------------------------------
On Oct 7, 2016, at 2:40 PM, dale <d=therio@gmail.com> wrote:
> Hi all,
>
> I am going to be storing shirt start and shift end times in a db. For =now it is simply showing when the technicians are scheduled to start and en=d their shift as well as when their lunch time starts.
>
> I'm not looking for code, only your thoughts on the smartest/most =flexible way to save the time.
>
> For doing any calculations I may need or want to do later, would you r=ecommend storing the time as:
>
> 6:00
> 06:00
> 0600
>
>
> I believe the later is the correct representation of 24 hour time. And= probably would be easier to do any math on the numbers.
>
>
> For a further revision, I have been asked to look into eventually usin=g this site as a time clock to replace the system we are currently using. T=hese punch-in times and dates will be stored in another database. The major=ity of the techs start work about 6:00 pm and work until 3:00am.
>
> The above data will also include location information from their mobil=e devices (they all work on various lots, so location information is import=ant).
>
> Thank you for your thoughts.
>
> Dale-----------------------=---- This message is sent to you because you are subscribed to the mailing =list . To unsubscribe, E-mail to: archives: http://mail.web=dna.us/list/ talk@webdna.us Bug Reporting: support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
|
You want seconds since epoch.
Sincerely,
Donovan> ------------------------------
On Oct 7, 2016, at 2:40 PM, dale <d=therio@gmail.com> wrote:
> Hi all,
>
> I am going to be storing shirt start and shift end times in a db. For =now it is simply showing when the technicians are scheduled to start and en=d their shift as well as when their lunch time starts.
>
> I'm not looking for code, only your thoughts on the smartest/most =flexible way to save the time.
>
> For doing any calculations I may need or want to do later, would you r=ecommend storing the time as:
>
> 6:00
> 06:00
> 0600
>
>
> I believe the later is the correct representation of 24 hour time. And= probably would be easier to do any math on the numbers.
>
>
> For a further revision, I have been asked to look into eventually usin=g this site as a time clock to replace the system we are currently using. T=hese punch-in times and dates will be stored in another database. The major=ity of the techs start work about 6:00 pm and work until 3:00am.
>
> The above data will also include location information from their mobil=e devices (they all work on various lots, so location information is import=ant).
>
> Thank you for your thoughts.
>
> Dale-----------------------=---- This message is sent to you because you are subscribed to the mailing =list . To unsubscribe, E-mail to: archives: http://mail.web=dna.us/list/ talk@webdna.us Bug Reporting: support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...