#!/usr/bin/env ruby
#
# Define window start/stop times
...

Ruby Detect time window

by z0mbix, March 07, 2011 21:03, 2 refactorings, tagged with time, ruby, window

I needed to detect if the c...

F0f3934c3feaecd1897dcf1cf55769fa Talk
def self.at_beginning_of_interval(time, interval_type)
      #simple substraction does not (seem) to work for long intervals (summer/winter time ?)
      #and at_beginning_of_hour is not defined
...

Ruby At beginning of interval

by pragmatig, May 24, 2009 18:33, 1 refactoring, tagged with time, ruby, date

This code was necessary sin...

4fc8066b5aeba133f665ec8f30f92a9c Talk
# Syncronize it
# Version 0.1
# Author : kyzh@snibbits.net
...

Ruby very simple .srt resyncroniser

by kyzh, December 08, 2008 23:52, 2 refactorings, tagged with time, file, kyzh

sick of seeking into the su...

F219245be3a984ebe2b754c64866551f Talk
def date(date, time = false)
    date = Date.parse(date) if date.is_a? String
    day = date.strftime('%d')
...

Ruby Human Date Method

by bazookaaa.myopenid.com, July 05, 2008 07:51, 6 refactorings, tagged with time, date

Seems like this method coul...

75fce382ae1f51533ea890ef92dcb47b Talk