> I guess I'm confused weather your
> library should use a RTC, or should
> take user input. For example, what day of the week is today,
> or what
> day of the week is March 1st 2013?
ATM, records are used. Therefore, today looks like this
x=bigcal_weekday(bigcal_current_date)
Next saturday is
var bigcal_datetype searchdate
searchdate=bigcal_current_date
while bigcal_weekday(searchdate) != 6 loop
bigcal_add_days(searchdate,1)
end loop
March, 1st 2013 is
searchdate.day=1
searchdate.month=3
searchdate.year=2013
x=bigcal_weekday(searchdate)
I really like this record thing here.
x=bigcal_weekday(bigcal_current_date)
or
x=bigcal_weekday(date_year,date_month,date_day)
var bigcal_datetype searchdate
searchdate=bigcal_current_date
or
var byte searchday
var byte searchmonth
var word searchyear
searchday=date_day
searchmonth=date_month
searchyear=date_year
It is much more readable using records and some errors can not even occur (like
accidentally swapping month and day or so.)
Greets,
Kiste
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.