South Africa C4 user Posted February 14 Share Posted February 14 Is there a way (driver?) to get a date variable and a time variable in string format? I am sure there must be… I have created quite a cool log (via string variable with carriage returns between each log entry) which I am displaying on the Touchscreen via the Custom UI driver and can scroll through the last couple of days logs. It is more flexible for what I am trying to do than the history agent although it doesn’t display in quite as aesthetically a pleasing manner. The only thing that I am currently missing for my use case is a date and time stamp for each entry. If I could put the current date and time into a string then I would have that sorted… As I type this,I’m wondering if the Yatun calculator driver has this functionality… I suspect it does if I look up the Lua code for date / time. Quote Link to comment Share on other sites More sharing options...
BDavisNJ Posted February 14 Share Posted February 14 Yes. I had the same issue when I wanted to display a log entry showing the length of time between start and end for the zone of an irrigation zone. Use the Chowmain variable manipulator driver Quote Link to comment Share on other sites More sharing options...
BDavisNJ Posted February 14 Share Posted February 14 @South Africa C4 user pla see above South Africa C4 user 1 Quote Link to comment Share on other sites More sharing options...
RAV Posted February 14 Share Posted February 14 Timestamp.c4i driver here: Quote Link to comment Share on other sites More sharing options...
BDavisNJ Posted February 14 Share Posted February 14 @RAVWhere, please, is the download link to the Timestamp.c4i driver? Quote Link to comment Share on other sites More sharing options...
RAV Posted February 14 Share Posted February 14 https://www.c4forums.com/applications/core/interface/file/attachment.php?id=7273&key=b3b8315161e7af0e0af46a8566484d5f BDavisNJ and South Africa C4 user 2 Quote Link to comment Share on other sites More sharing options...
South Africa C4 user Posted February 14 Author Share Posted February 14 Thanks guys! Appreciate the suggestions. I got os.date and os.time working within the Yatun calculator driver so now have quite a bit of flexibility around this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.