This isn't super high priority, but it could be a fun custom module project for someone.
I've got an episode content type. With a field named duration. It's an integer field, handled by Time Period module https://www.drupal.org/project/timeperiod. I enter times as hours, minutes, seconds, but they are stored in the database as purely seconds.
Then I have a list of shows and durations at http://dev.thewebahead.net/admin/durations. Views Calc adds up the column of times, and spits out an answer of total number of seconds. Right now (after episode 88), that's 429,075 seconds. Doing the math manually, that works out to 119 hours, 10 minutes, and 15 seconds.
I want to display the total time on the site homepage in a block. For now, I'm just going to keep updating the total and edit the text.
But it'd be more cool if Drupal could take the total of the values in this field, convert it from seconds to hours/min/sec, and create token that holds that answer. Then the block could have a token (yes?) in the text, and the number could constantly update itself. Or something similar to get the same effect — take the data, print the value.
This isn't super high priority, but it could be a fun custom module project for someone.
I've got an episode content type. With a field named duration. It's an integer field, handled by Time Period module https://www.drupal.org/project/timeperiod. I enter times as hours, minutes, seconds, but they are stored in the database as purely seconds.
Then I have a list of shows and durations at http://dev.thewebahead.net/admin/durations. Views Calc adds up the column of times, and spits out an answer of total number of seconds. Right now (after episode 88), that's 429,075 seconds. Doing the math manually, that works out to 119 hours, 10 minutes, and 15 seconds.
I want to display the total time on the site homepage in a block. For now, I'm just going to keep updating the total and edit the text.
But it'd be more cool if Drupal could take the total of the values in this field, convert it from seconds to hours/min/sec, and create token that holds that answer. Then the block could have a token (yes?) in the text, and the number could constantly update itself. Or something similar to get the same effect — take the data, print the value.
Anyone interested?