![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I need to know how to add/subtract time.
I'm creating a numpad that will display the time in increments(1:00,5:00,10:00 so on and so forth). The user only needs to see the time he/she inputs.I can do that.But what I cant do is to so the sum. I suppose I could convert time in to ticks but that is lost on me. Here I have an example of what I'm working on: (03:25-03:45=00:20) then (09:00+21:00=11:40) As you see I'm using 24 hour display and I subtracted the 20min from the run time of 12 hours. |
|
||||
|
This is best (and easiest) thing to do to perform accurate time calculations - it's not difficult to get your head round it. Ticks are just a count of small increments of time from a defined starting time. Convert to ticks, do the sums and convert back at the end. Just read through Help->Main Help->Keywords->Time to see what can be done.
|
|
||||
|
See the Date and Time tutorial: Date and Time
|
|
|||
|
Hello!
I want to add time values togeder which are in a table (all in one column). The sum will be higher then 24 hours and I need the value in hour:minute form (345:23). How is this possible to do? These time values are sorted by dates, I want to add togeder these time values for previous six days. Not the last six entries but the last six days. Thx |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mars Time | alfcen | Share Your Creations | 4 | 05-12-2008 11:21 AM |
| Adding time | Sascha K. | Questions & Help Needed | 3 | 03-23-2008 07:46 PM |
| Time question | Cableguy | Questions & Help Needed | 2 | 01-05-2008 10:49 AM |
| Time Zone | alfcen | Basic4ppc Wishlist | 8 | 10-05-2007 05:47 AM |