Is there a drupal field type to represent time for athletics sports events. e.g. for 100m sprint: 10.42 seconds but for 800m 1:40.89 (1 minute, 40.89 seconds) In the format : hour:minute:second.tenth of a second

  • I created a project to do the same thing. It's currently in the review process and as soon as it's been approved, I'll send you the link.
    – Robbert
    Apr 9 '14 at 21:50
  • The module Robbert referred to is still a sandbox available from drupal.org/sandbox/robbertv/2158841, but hasn't been thoroughly reviewed or promoted to a full module yet. I still haven't been able to find a good solution for this.
    – kreynen
    Dec 17 '14 at 7:32
  • 1
    I finally got around to getting my sandboxed project promoted to a full project: drupal.org/project/racetime
    – Robbert
    Jan 3 '15 at 5:35

No time field will give you what you are looking for. They all work with Unix time, which is defined as 'the number of seconds since midnight, January 1, 1970'. The maximum granularity you will see is one second.

If you wish to record this information to one one-hundredth of a second, you will need to define the field and its formatting yourself.


Not sure if this module does what you need. But http://drupal.org/project/cck_time may work if it allows you to create a format using PHP. There is also


Checkout this module HMS Field

Displays a integer formatted as Hours, Minutes or Seconds. The field stores values as integer. Both input and output can be formatted as Hours, Minutes and/or Seconds. Alter functions provides developers a way to add their own format.

  • This doesn't support tenth of seconds as required by the OP
    – berliner
    Feb 15 '14 at 16:56

This is currently being developed too: https://www.drupal.org/project/timeperiod


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.