Duration
Duration is a set of three modules, each for a different target audience:
- duration_api provides a reusable Duration class and formatter functions for developers who need to do internal date calculations and conversions.
- duration_element depends on duration_api and provides a set of form elements for entering durations, to be used in custom forms.
- duration depends on both of the above and assembles the pieces into a CCK field, not requiring a single line of code to use it.
In order to add a new CCK field, go to the "Add fields" form and select any widget for the "Duration" field type. Configure, use, rejoice.
Developers can find the API documentation inside the module files, examples for using the form elements are provided in duration.example.
If this module doesn't fit your needs, the Date module might be worth a try.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.0-rc2 | 2008-Oct-08 | 22.79 KB | Download · Release notes | Recommended for 6.x | |
