Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
feature request, conversion functions for time and date-time

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
stevech



Joined: 23 Feb 2006
Posts: 657

Posted: 21 September 2006, 3:38 AM    Post subject: feature request, conversion functions for time and date-time Reply with quote

nice to have...

two functions that could be called
cTime(n, h, m, s) where n is as if from register.RTCtick at some other time, and h, m, s are as in GetTime()

cDate(n, y, m, d, dnum) where n is as if from register.RTCday at some other time and y, m, d, dnum are as in GetDate

this would simplify and standardize converting dates and times that are stored and accessed later.

same idea would be nice for TimeStamps in ZBasic
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 21 September 2006, 5:11 AM    Post subject: Reply with quote

GetDate was recently extended to allow an arbitrary day number to be passed. I can see that a similar extension to GetTime() would be similarly useful.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group