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

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

Basic4ppc Wishlist Missing any feature?

DateTime compatibility methods

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-31-2008, 03:04 PM
Senior Member
 
Join Date: Dec 2007
Posts: 149
Awards Showcase
Beta Tester Beta Tester 
Total Awards: 2
Default DateTime compatibility methods

Is it possible to iintegrate DateTime compatibility methods like in VB.Net.
There is the .ToOADate()- and the .FromOADate()-Method to convert from Ticks to a Double formated Date and the reversal.

Best regards

berndgoedecke
Reply With Quote
  #2 (permalink)  
Old 08-31-2008, 03:13 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I believe that's already( as it always was) possile using DATEParse, wich converts adate to the tick, and DATE wich converts o a date a numbe of ticks, formated by the DATEFORMAT....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 04:37 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Sorry Cableguy but doesn't want a string, he wants a fractional date type.

I think that a OADate is the same as a TDateTime which we discussed here http://www.basic4ppc.com/forum/basic...e-structs.html
Reply With Quote
  #4 (permalink)  
Old 08-31-2008, 05:21 PM
Senior Member
 
Join Date: Dec 2007
Posts: 149
Awards Showcase
Beta Tester Beta Tester 
Total Awards: 2
Default

You are right agraham,but isn't it faster to use the VB.Net methods, implemented in a dll ??
Reply With Quote
  #5 (permalink)  
Old 08-31-2008, 05:43 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by berndgoedecke View Post
isn't it faster to use the VB.Net methods, implemented in a dll ??
It might seem surprising but probably not in an optimised compiled app, especially for FromOADate() which is one multiply and one add. There is the overhead of a library call and a further call in the library to the .NET functions and the variables need the same processing whether they are passed to a library or merely prepared for B4ppc computation.
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
Proper use of the .New methods, out of memory error kolbe Questions (Windows Mobile) 5 09-05-2008 01:37 PM
Http Methods, waht do they do?? Cableguy Questions (Windows Mobile) 6 07-27-2008 03:56 PM
Access to DateTime Structs berndgoedecke Basic4ppc Wishlist 9 07-27-2008 09:42 AM
What is about SQLite Methods like AExecute, LastError or Interrupt... berndgoedecke Questions (Windows Mobile) 10 07-16-2008 06:18 PM


All times are GMT. The time now is 11:28 AM.


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