Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Add & Subtract Time


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-28-2007, 07:10 AM
Senior Member
 
Join Date: May 2007
Posts: 130
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi kavka,

Convert first the date/time to 'ticks' before adding/subtracting them.

and then convert it back to hours and minutes like...

SUM=summation of ticks

h=Int(sum/cticksperhour)
m=Int((sum Mod cticksperhour)/cticksperminute)
Msgbox(h&":"&m)

Regards,
__________________
__________________
Rioven

Sony Ericsson XPERIA X1i WM6.1
480x800 Display Resolution
with QWERTY keyboard
Reply With Quote
  #12 (permalink)  
Old 11-28-2007, 09:24 AM
Junior Member
 
Join Date: Oct 2007
Posts: 25
Default

Ok Rioven, I will try it this way.

Thx
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mars Time alfcen Share Your Creations 4 05-12-2008 12:21 PM
Time question Cableguy Questions & Help Needed 2 01-05-2008 11:49 AM
Time Addition busboy Questions & Help Needed 3 10-01-2007 02:41 PM
Date and Time Erel Tutorials 0 09-24-2007 10:05 AM
Load time BPak Questions & Help Needed 3 08-28-2007 04:27 AM


All times are GMT. The time now is 06:41 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0