# Name:: Sysadmin::TimeExtension # Author:: 774 # Created:: Sep 27, 2012 # Updated:: Sep 27, 2012 # Copyright:: 774 Copyright (c) 2012 # License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. require 'time' module Sysadmin module TimeExtension def Time.strict_parse(str) unix_epoch = Time.local(1970,1,1,0,0,0) time = Time.parse(str, nil) rescue nil time = nil if time == unix_epoch time end end end