Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby gem for converting between World Time Format and standard dates and times.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
CHANGELOG
LICENSE
README
Rakefile

README

= World Time Format Converter

== Description

The WTF gem provides a Ruby class to convert between standard
time and World Time Format.  For more information, visit
http://www.worldtimeformat.com

== Examples

  WTF::Date.new("FIWIT:NAAAA").as_utc  # converts a WTF datetime to a Ruby Time object
  WTF::Date.new(time).as_wtf           # converts from a Ruby Time object to a WTF string
  WTF::Date.now.as_wtf                 # returns a WTF string representing the current datetime
  WTF::Date.now.date_part              # returns a WTF string representing the current date
  WTF::Date.now.time_part              # returns a WTF string representing the current time
  WTF::Date.convert("FIWIT:NAAAA")     # convenience method for converting
  WTF::Date.convert(time)              # convenience method for converting
Something went wrong with that request. Please try again.