Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Basic4ppc Wishlist
Home Register FAQ Members List 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, 04:04 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
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, 04:13 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,322
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

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 08-31-2008, 05:37 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,704
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 Access to DateTime Structs
Reply With Quote
  #4 (permalink)  
Old 08-31-2008, 06:21 PM
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
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, 06:43 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,704
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper use of the .New methods, out of memory error kolbe Questions & Help Needed 5 09-05-2008 02:37 PM
Http Methods, waht do they do?? Cableguy Questions & Help Needed 6 07-27-2008 04:56 PM
Access to DateTime Structs berndgoedecke Basic4ppc Wishlist 9 07-27-2008 10:42 AM
What is about SQLite Methods like AExecute, LastError or Interrupt... berndgoedecke Questions & Help Needed 10 07-16-2008 07:18 PM


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


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