Skip to content

geminoa/date_ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

What is this?

date_ext.rb - extention for DateTime#new method.

Overview

DateTime#new_ext method enables developers to create the DateTime oject from invalid parameters of range.

How to use

>> DateTime.mnew(2009,18,55, 30,100,5000).to_s
=> "2010-07-26T09:03:20+00:00"
>> DateTime.mnew(2009,18,55, 30,100,5000,"+8").to_s
=> "2010-07-26T09:03:20+08:00"
>> DateTime.mnew(2009,18,55, 30,100,5000,"+08:00").to_s
=> "2010-07-26T09:03:20+08:00"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages