Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Hello to All,
i am very new to LiveCode but i love it ; for me it have only a problem : difficult to easy find example for all function....
Now i need some code to compare Date and Time to see if current date or time
is in an interval.
Can someone help me?
Thanks in advance.
Hi Tabbiati.
I need to compare date/time too because I am programming something like scheduler/organizer and it's necessary to check if current datetime is > than deadline of event
Which format of date time it's better to use?
I think to convert to seconds and after compare, can be good idea? Can I know how you solved?
thanks
In the United States, where we assume that everyone speaks English and uses our date and time format, the month would come first, then the day, then the year. I have heard that people do not always follow this format, which we cannot understand.
Anyway, look up the "useSystemDate" in the dictionary. It will point you in the direction of taking control of that format.
Thank you so much for the replay dunbarx, what I have forget to mention is that I would like to use a date to calculate the expiration time of a beta version, so I have to be certain that LiveCode understands that that date is passed whenever the user use it. So if somebody have more info to implement a unique "universal" date, I will be happy.
PS
Thank you for the useSystemDate tip, I will go to read the documentation.
Well, if you use the seconds, which is format independent, you are done. All you need are a few custom functions to do the comparisons and date translations.
Is the internet date also platform and format independent?
OK, so I learnt that the useSystemDate specifies whether the date and time functions should be formatted in accordance with the user's system preferences, or in the standard format used in the United States. The default value is "false", so I guess that if I hard-code a date, it will be valid for the whole world.