forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Time and money calculation????

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DeMoNHeaD
Guest





PostPosted: Thu Jun 27, 2002 11:04 am    Post subject: Time and money calculation???? Reply with quote

is there any way for vds4 to calculate money operation?? Like US 8.32 cent deducted from US 1743.56 cent? Also is there any way to calculate time if given time started and time ended like Start at 7:45 am and ended at 8:23 PM. How much the time had elapsed?
Back to top
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Jun 28, 2002 3:58 am    Post subject: Reply with quote

Yes, VDS can do these things. I don't have any code handy nor the time at the moment to actually do this work for you, so please read the help file for VDS and check into the examples with VDS and here on VDS World.

Also search the forums here for previous postings regarding these, as I remember not so long ago someone else working on the @datetime() calculations.

Good luck,
-Garrett
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Fri Jun 28, 2002 5:02 pm    Post subject: Reply with quote

This topic in the forum archive may be helpful:

http://www.vdsworld.com/archive/index.php?page=topic&board=15&topic=3

Especially the date extraction code listed there dated "08-20-2001 10:31 a.m.".

Tommy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Fri Jun 28, 2002 8:42 pm    Post subject: Reply with quote

To find 8.32 cents deducted from US 1743.56 cents
(I assume this is fractional cents???):

%t = @format(@fsub(1743.56, 8.32), .0)
INFO test %t


I posted a simple procedure to find elapsed time
in the VDS3 Share Code section:

http://www.vdsworld.com/forum/viewtopic.php?t=389

Although the @datetime() function will return a float
for any date, I have not found a way to do so for an
arbitrary time (such as 12:15 pm), so the start and
end time floats must be retrieved as they occur.

Anyone know how to retrieve a time float (other than
the current time)?

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group