<div>There is a duration module:</div>
<div><a href="http://drupal.org/project/duration">http://drupal.org/project/duration</a><br><br></div>
<div class="gmail_quote">On Fri, May 13, 2011 at 4:21 AM, Steven Jones <span dir="ltr"><<a href="mailto:steven.jones@computerminds.co.uk">steven.jones@computerminds.co.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello,<br><br>Thanks for the responses, but going back to my original question:<br><br>> Is there any module out there that provides a generic 'interval' form element?<br>
<br>The answer seems to be: 'No'. I might write one.<br><br><br>Regards<br>Steven Jones<br>ComputerMinds ltd - Perfect Drupal Websites<br><br>Phone : 024 7666 7277<br>Mobile : <a href="tel:07702%20131%20576" value="+17702131576">07702 131 576</a><br>
Twitter : darthsteven<br><a href="http://www.computerminds.co.uk/" target="_blank">http://www.computerminds.co.uk</a><br><br><br><br>On 12 May 2011 16:29, Cameron Eagans <<a href="mailto:cweagans@gmail.com">cweagans@gmail.com</a>> wrote:<br>
> Check out date_repeat, which comes as a part of the date module.<br>> Thanks,<br>> Cameron<br>><br>><br>><br>> On Thu, May 12, 2011 at 01:45, Hai-Nam aka jcisio <<a href="mailto:jcisio@gmail.com">jcisio@gmail.com</a>> wrote:<br>
>><br>>> Le 12/05/2011 08:32, Steven Jones a écrit :<br>>> ><br>>> > I've looked at core, and it just uses some custom code each time to<br>>> > generate a list of intervals and pop them in a select list. I've also<br>
>> > looked at other contrib modules and some of them just provide a<br>>> > textfield and others provide a textfield for numeric input and a<br>>> > select list for 'units'. There doesn't seem to be a catch-all solution<br>
>> > that I can find, and everyone seems to implementing intervals in a<br>>> > slightly different way.<br>>> ><br>>><br>>> In one of my module, I use a select list with prefined values to quickly<br>
>> fill a textfield with a choice. Then user can modify this textfield if<br>>> they don't like any of these predefined values.<br>>><br>>> Take a look at<br>>> <a href="http://drupal.org/project/hidden_comment" target="_blank">http://drupal.org/project/hidden_comment</a><br>
>><br>>> --<br>>> Hai-Nam Nguyen aka jcisio<br>>> <a href="http://jcisio.com/" target="_blank">http://jcisio.com</a><br>><br>><br></blockquote></div><br>