Page 1 of 1

Date and time constants

Posted: Fri Dec 12, 2003 9:50 pm
by ClaudeT
Hi,



I'm just experimenting with HouseBot for the first time. I love it.

My suggestion is minor and is easily worked around, but I found it annoying and awkward right from the start...



Is it possible to allow date and time and duration constants to be specified in a more natural and compact way than hours=14, minutes=33, etc in conditions, values, etc.



My suggestion is to allow them to be specified just as you display them... I would enter 14:33 or 2:33pm or 14:33:00 for full times.

I would enter :33 for 33 minutes

I would enter ::30 for 30 seconds.

I would enter yyyy/mm/dd for a date (eg 2003/12/14 or 2003.12.14 or 2003-12-14)

Datetimes would just be combinations: 2003-12-14 4:32:30pm



Minor, I know, and not really a functionality issue, but I thought I would mention it.

Posted: Wed Dec 17, 2003 9:46 am
by ClaudeT
PS. "Millisecond", not "mili-second" :wink:

Posted: Wed Dec 17, 2003 11:14 am
by ScottBot
That would be a nice feature, but tricky to implement across the board. Time and dates are stored in a normalized format in the system because different locales can use different time and date formats for display. Although times are fairly consistent (I think), to do the same for dates would be a little more tricky.



I'll add it to the list.



Thanks,

Scott