method
strptime
v1_9_2_180 -
Show latest stable
-
0 notes -
Class: Time
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (38)
- 2_2_9 (1)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (4)
- What's this?
strptime(date, format, now=self.now)
public
Parses date using Date._strptime and converts it to a Time object.
If a block is given, the year described in date is converted by the block. For example:
Time.strptime(...) {|y| y < 100 ? (y >= 69 ? y + 1900 : y + 2000) : y}