#### Author: Andres Paglayan

#### ~ 18/02/11

ruby-1.8.7-p330 :040 > t = Time.now

=> Fri Feb 18 15:20:09 -0700 2011

ruby-1.8.7-p330 :041 > ((‘a’..’z').to_a + (‘A’..’Z').to_a).each{|l| puts “strftime with #{l} gives: ” + t.strftime(“%#{l}”) }

strftime with a gives: Fri

strftime with b gives: Feb

strftime with c gives: Fri Feb 18 15:20:09 2011

strftime with d gives: 18

strftime with e gives: 18

strftime with f gives: %f

strftime with g gives: 11

strftime with h gives: Feb

strftime with i gives: %i

strftime with j gives: 049

strftime with k gives: 15

strftime with l gives: 3

strftime with m gives: 02

strftime with n gives:

strftime with o gives: %o

strftime with p gives: PM

strftime with q gives: %q

strftime with r gives: 03:20:09 PM

strftime with s gives: 1298067609

strftime with t gives:

strftime with u gives: 5

strftime with v gives: %v

strftime with w gives: 5

strftime with x gives: 02/18/11

strftime with y gives: 11

strftime with z gives: -0700

strftime with A gives: Friday

strftime with B gives: February

strftime with C gives: 20

strftime with D gives: 02/18/11

strftime with E gives: %E

strftime with F gives: 2011-02-18

strftime with G gives: 2011

strftime with H gives: 15

strftime with I gives: 03

strftime with J gives: %J

strftime with K gives: %K

strftime with L gives: %L

strftime with M gives: 20

strftime with N gives: %N

strftime with O gives: %O

strftime with P gives: pm

strftime with Q gives: %Q

strftime with R gives: 15:20

strftime with S gives: 09

strftime with T gives: 15:20:09

strftime with U gives: 07

strftime with V gives: 07

strftime with W gives: 07

strftime with X gives: 15:20:09

strftime with Y gives: 2011

strftime with Z gives: MST

## No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.