More flexible time input

Have a great idea on how VueMinder could be improved? Post it here!
Posts: 20
Joined: Tue Nov 15, 2011 2:10 pm

More flexible time input

Post by ptoye » Fri Mar 09, 2012 4:27 am

I think that the current mechanism for inputting times is a bit inflexible as it insists on a punctuation mark between the hours and minutes. But this isn't really necessary as "1311" is obviously "13:11". Here's some pseudo-code which I suggest as a starter for making it a bit more flexible.

if (punctuation mark in string) then
Parse parts before and after punct as hours and minutes (the current situation)
else if (3 or 4 digits) then
Parse 1st 1 or 2 as hours, last 2 as minutes
else if (1 or 2 digits) then
Parse as hours with zero minutes
else Error

User avatar
Dan Chartrand
Posts: 3921
Joined: Sat Aug 23, 2008 12:39 am
Location: St. Louis, Missouri, USA

Re: More flexible time input

Post by VueSoft » Sat Mar 10, 2012 1:08 am

Hi Peter, thanks for the suggestion. I've added this to my list and will post a reply when this improvement is completed.
Dan Chartrand, Founder
VueSoft LLC | St. Louis, Missouri, USA

Post Reply