diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-12 10:52:58 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-12 10:52:58 +0000 |
commit | 3a71da583076f6a827005c87f2d85843d125c4d6 (patch) | |
tree | 3752c51e72b5dd68a13896014bc4dcbb766219d1 /ext/date | |
parent | 2417bd10d2fcf2e561bb777ace7fb5c6262af7c7 (diff) | |
download | ruby-3a71da583076f6a827005c87f2d85843d125c4d6.tar.gz |
* ext/date/date_core.c: added some notes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date')
-rw-r--r-- | ext/date/date_core.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 2006bd453c..99f1c0de98 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -4205,8 +4205,9 @@ date_s__strptime_internal(int argc, VALUE *argv, VALUE klass, * Date._strptime(string[, format='%F']) -> hash * * Parses the given representation of date and time with the given - * template, and returns a hash of parsed elements. - * + * template, and returns a hash of parsed elements. _strptime does + * not support specification of flags and width unlike strftime. + * * For example: * * Date._strptime('2001-02-03', '%Y-%m-%d') @@ -4225,7 +4226,8 @@ date_s__strptime(int argc, VALUE *argv, VALUE klass) * Date.strptime([string='-4712-01-01'[, format='%F'[, start=ITALY]]]) -> date * * Parses the given representation of date and time with the given - * template, and creates a date object. + * template, and creates a date object. strptime does not support + * specification of flags and width unlike strftime. * * For example: * @@ -8013,7 +8015,8 @@ dt_new_by_frags(VALUE klass, VALUE hash, VALUE sg) * DateTime._strptime(string[, format='%FT%T%z']) -> hash * * Parses the given representation of date and time with the given - * template, and returns a hash of parsed elements. + * template, and returns a hash of parsed elements. _strptime does + * not support specification of flags and width unlike strftime. * * See also strptime(3) and strftime. */ @@ -8028,7 +8031,8 @@ datetime_s__strptime(int argc, VALUE *argv, VALUE klass) * DateTime.strptime([string='-4712-01-01T00:00:00+00:00'[, format='%FT%T%z'[ ,start=ITALY]]]) -> datetime * * Parses the given representation of date and time with the given - * template, and creates a date object. + * template, and creates a date object. strptime does not support + * specification of flags and width unlike strftime. * * For example: * |