Project

General

Profile

Bug #9521 ยป doc_lib_time.patch

stomar (Marcus Stollsteimer), 02/15/2014 05:02 PM

View differences:

lib/time.rb (Arbeitskopie)
279 279
    # values (1 or 0) are assumed if broken or missing.  For example:
280 280
    #
281 281
    #     # Suppose it is "Thu Nov 29 14:33:20 GMT 2001" now and
282
    #     # your time zone is GMT:
282
    #     # your time zone is EST:
283 283
    #     now = Time.parse("Thu Nov 29 14:33:20 GMT 2001")
284
    #     Time.parse("16:30", now)     #=> 2001-11-29 16:30:00 +0900
285
    #     Time.parse("7/23", now)      #=> 2001-07-23 00:00:00 +0900
286
    #     Time.parse("Aug 31", now)    #=> 2001-08-31 00:00:00 +0900
287
    #     Time.parse("Aug 2000", now)  #=> 2000-08-01 00:00:00 +0900
284
    #     Time.parse("16:30", now)     #=> 2001-11-29 16:30:00 -0500
285
    #     Time.parse("7/23", now)      #=> 2001-07-23 00:00:00 -0500
286
    #     Time.parse("Aug 31", now)    #=> 2001-08-31 00:00:00 -0500
287
    #     Time.parse("Aug 2000", now)  #=> 2000-08-01 00:00:00 -0500
288 288
    #
289 289
    # Since there are numerous conflicts among locally defined time zone
290 290
    # abbreviations all over the world, this method is not intended to