Time Duration (Composition by smokris)

Author: smokris
License: MIT
Date: 2010.04.08
Compatibility: 10.5, 10.6
Categories:
Required plugins:
(none)

Given a number of seconds, produces a human-readable string description of the time period.

E.g., converts "5502" into "1 hour, 31 minutes, 42 seconds".

Based on PHP code from http://aidanlister.com/2004/04/making-time-periods-readable/

PreviewAttachmentSize
Time Duration.qtz3.32 KB

jrs's picture
Re: Time Duration (Composition by smokris)

Most handy - thanks

pho's picture
Re: Time Duration (Composition by smokris)

Hi,

could you make the Virtual Macro editable? I need to change the language of the words to portuguese.

Thanks

smokris's picture
Re: Time Duration (Composition by smokris)

@pho: Once you've added the Virtual Macro to your library (place it in <your home folder>/Library/Graphics/Quartz Composer Patches), you can select it in the QC Editor's Patch Library, then right-click and select "Edit...".

pho's picture
Re: Time Duration (Composition by smokris)

Yes, but it doesn't let me go inside the Time Duration patch.

pho's picture
Re: Time Duration (Composition by smokris)

oh, its javascript. Sorry, I only noticed that now.

Thanks

jersmi's picture
Re: Time Duration (Composition by smokris)

Thank you for this. Some useful concepts packed into this js script.