Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Adding time

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-23-2008, 07:38 PM
Junior Member
 
Join Date: Feb 2008
Location: Germany, Düsseldorf
Posts: 17
Default Adding time

Hello,

How can I add a lot of different time-values?

Example:
Day.............from.......until..........differen ce
Monday,.......08:00h - 17:00h --> 09:00h
Tuesday,......08:30h - 16:30h --> 08:00h
Wednesday,..08:00h - 17:30h --> 09:30h
--------------------------------------------
..........................................26:30h

When I use TimeParse to change TIME into TICKS, there is a problem after 24h.
Next add only adds the value to 00:00h.
__________________
Best regards / Gruß
Sascha

Last edited by Sascha K. : 03-23-2008 at 07:52 PM.
Reply With Quote
  #2 (permalink)  
Old 03-23-2008, 08:06 PM
specci48's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Germany
Posts: 993
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hello Sascha K.,

a small example:

Code:
    a = TimeParse("23:00") - TimeParse ("02:00")
b = TimeParse(
"21:00") - TimeParse ("04:30")
c = a + b
d = c 
Mod cTicksPerHour
Label1.Text = (c - d) / cTicksPerHour & 
":" & d / cTicksPerMinute

specci48
Reply With Quote
  #3 (permalink)  
Old 03-23-2008, 08:30 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I recommend you to read the Date & Time tutorial: http://www.basic4ppc.com/forum/tutorials/894-date-time.html
Reply With Quote
  #4 (permalink)  
Old 03-23-2008, 08:46 PM
Junior Member
 
Join Date: Feb 2008
Location: Germany, Düsseldorf
Posts: 17
Default

Ok, I´ve found a solution.

Thanks for your fast help.
__________________
Best regards / Gruß
Sascha
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup Builder - adding files TWELVE Questions (Windows Mobile) 1 06-10-2008 06:55 PM
Adding calendar in runtime Cableguy Basic4ppc Wishlist 2 05-23-2008 06:23 PM
Adding Data to TreeView Nodes Woinowski Basic4ppc Wishlist 7 01-07-2008 11:32 AM
Sorted objects when adding agraham Basic4ppc Wishlist 0 11-18-2007 04:47 PM
Adding a Icon to a Control. cdeane Questions (Windows Mobile) 1 09-29-2007 06:56 AM


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0