Skip to content
ActsAsTimecode Plugin
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
MIT-LICENSE
README
Rakefile
VERSION
acts-as-timecode.gemspec
init.rb

README

ActsAsTimecode
==============

A simple plugin to transform a field stored as seconds into a timecode in the format of HH:MM:SS.

The timecode can be set in any of the following formats:
HH:MM:SS:FF
HH:MM:SS
MM:SS
SS

Frames will be converted to seconds and rounded, based on the :fps value (default fps = 30)

Example
=======

class Video < ActiveRecord::Base
  acts_as_timecode :column => :duration
end

video.timecode = "01:23:45"
video.duration = 5025


Copyright (c) 2009 Brian Michalski, released under the MIT license
You can’t perform that action at this time.