Display Time format

by MYLE 21. June 2010 21:49

I have been ask many time what the best way to store hours in a data base.
as hour is a mod 60 what I do store MINS and use the below function to convert the mins to time format so
if a job took me 1:30 I store the min value 90min then if a did and other hour store that as 60 then add the mins up 150min total pass the

total = Mintohrs(150)

total would show 02:30 HrstoMin

Function Mintohrs(Tmin)
    hh = Int(Tmin / 60)
    tt = hh * 60
    mm = Tmin - tt
    Mintohrs = DIG(hh) & ":" & DIG(mm)
End Function

hourtomin

 my other Functions

03:15 = Mintohrs(90+90+15)

I use and other Function I wrote to format the Mins

Comments

8/14/2010 7:06:46 AM #

ray ban sunglasses

I really enjoyed the quality information you offer to your visitors for this blog.I will bookmark your blog and have my children check up here often.This blog is valuvable for me.

ray ban sunglasses United States |

8/17/2010 2:30:14 AM #

MYLE

See you soon

MYLE |

10/15/2010 9:10:04 PM #

Digital Cameras Best Buys

I don't like the whole thing on this article, but you do make some very good point in here. I am very excited about this topic and I myself act a lot of explore as well. Either way it had been a well thoughtout read so I figured I would leave u a comment. Thanks for sharing.

Digital Cameras Best Buys United States |

11/19/2010 8:25:55 PM #

Prince Racquets

Interesting read, I'm trying to subsribe for your Rss feed but I can't seem to find it. Am I missing something?

Prince Racquets United States |

12/9/2010 9:42:45 AM #

drzwi wewnętrzne

Thanks darragh! This is just what I need to familiarize myself in blog commenting. Looking forward to many interesting and helpful articles from you.

drzwi wewnętrzne United States |

12/10/2010 3:40:48 PM #

Marijuana Dispensary

Medical weed lawyer can help anyone who may be facing criminal prosecution for various state and federal drug related charges.

Marijuana Dispensary United States |

12/25/2010 4:35:53 AM #

gofashionblog.info

Useful content you've here. I did a write up personally on this issue some time ago, and I wish I had your blog post  as a power source back then. Oh well. Thanks again for this writing.

gofashionblog.info United States |

12/30/2010 6:07:45 PM #

run faster with isometric training

Nice post!You should have way more subs than this

run faster with isometric training United States |

1/6/2011 7:32:52 PM #

Edith Wharton

If I can just mention here RIP poor Gerry Rafferty - you get the feeling that despite all his financial/musical success emotionally he never made it out of Baker Street, deep down inside himself he would always be there. Such a shame.

Edith Wharton United States |

1/11/2011 7:12:52 PM #

weight loss motivation

I recently found your commentary and have been examining alongside. I want to express my very own wonder of your respective copy flair and skill to create visitors saw right from the start to your end. I would like to see newest articles or reviews and to share my thoughts to you.

weight loss motivation United States |

1/18/2011 2:33:13 AM #

Kurt Lominack

Good summary. It was a great read.

Kurt Lominack United States |

1/21/2011 3:58:24 PM #

Renate Logiudice

Our hearts in Canada go out to you all in Australia at this most awful time of your lives - bless your dear hearts - Sincere good feelings to you all.

Renate Logiudice United States |

1/21/2011 9:35:01 PM #

vets in cairns

In conventional pet medicine, in case your dog or cat has a sore paw, the vet will look for the most part on the leg. It makes sense, you are going to say. It does, however this also limits the doctor's chances of uncovering correlated problems that may need lead to the sore paw.

vets in cairns United States |

1/27/2011 7:04:31 PM #

Frederic Akerley

Nice article, thank you! Can you explain the third paragraph in more detail?

Frederic Akerley United States |

Comments are closed

Dislexia

I see people have commented about my style of writting.
Well I have dislexia so spelling is not one of my good points
but when it comes to reading/written code thats the easy bit.

 

 

Poll

What Search Engine Do you use




Show Results

Disclaimer of Liability

While every effort will be made to ensure that the information contained within this website is accurate and up to date, The Company's listed with this web site and any associated parties, make no warranty, representation or undertaking, whether expressed or implied, nor does it assume any legal liability, whether direct or indirect, or responsibility for the accuracy, completeness, or usefulness of any information.

 

Google Ads

Most comments

apply cash advance apply cash advance
1 comments
us United States
cloudy cloudy
1 comments
us United States
mutuelle mutuelle
1 comments
fr France

RecentComments

Comment RSS