You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/date/date_core.c
+12-32Lines changed: 12 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -9234,41 +9234,30 @@ Init_date_core(void)
9234
9234
negative_inf=-INFINITY;
9235
9235
9236
9236
/*
9237
-
* The Date and DateTime classes provide methods for storing, comparing, transforming, and operating on values of date and time. Date objects store only the date (e.g. 1987-06-29), while DateTime objects store both the date and time (e.g. 1984-02-09 05:32:12).
9237
+
* date and datetime class - Tadayoshi Funaba 1998-2011
9238
9238
*
9239
-
* 1998-2011 by Tadayoshi Funaba
9240
-
*
9241
-
* = Introduction
9242
-
*
9243
-
* Date and DateTime are included in the standard library. To use, require ‘date’ will provide both classes.
9239
+
* 'date' provides two classes Date and DateTime.
9244
9240
*
9245
9241
* == Terms and definitions
9246
9242
*
9247
9243
* Some terms and definitions are based on ISO 8601 and JIS X 0301.
9248
9244
*
9249
-
* === Calendar date
9245
+
* === calendar date
9250
9246
*
9251
9247
* The calendar date is a particular day of a calendar year,
9252
9248
* identified by its ordinal number within a calendar month within
9253
9249
* that year.
9254
9250
*
9255
-
* In the Date and DateTime classes, this is called "civil."
9251
+
* In those classes, this is so-called "civil".
9256
9252
*
9257
-
* Date.civil(2012,03,17)
9258
-
* This refers to March 17th, 2012.
9259
-
*
9260
-
* === Ordinal date
9253
+
* === ordinal date
9261
9254
*
9262
9255
* The ordinal date is a particular day of a calendar year identified
9263
9256
* by its ordinal number within the year.
9264
9257
*
9265
-
* In the Date and DateTime classes, this is called "ordinal."
9266
-
*
9267
-
* Date.ordinal(2012,77)
9268
-
* This refers to the 77th day of 2012.
9258
+
* In those classes, this is so-called "ordinal".
9269
9259
*
9270
-
*
9271
-
* === Week date
9260
+
* === week date
9272
9261
*
9273
9262
* The week date is a date identified by calendar week and day numbers.
9274
9263
*
@@ -9278,13 +9267,9 @@ Init_date_core(void)
9278
9267
* includes the first Thursday of that year. In the Gregorian
9279
9268
* calendar, this is equivalent to the week which includes January 4.
9280
9269
*
9281
-
* In the Date and DateTime classes, this is called "commercial."
9282
-
*
9283
-
* Date.commercial(2012,11,06)
9284
-
* This refers to the 6th day of the 11th week of 2012.
9270
+
* In those classes, this so-called "commercial".
9285
9271
*
9286
-
*
9287
-
* === Julian day number
9272
+
* === julian day number
9288
9273
*
9289
9274
* The Julian day number is in elapsed days since noon (Greenwich mean
9290
9275
* time) on January 1, 4713 BCE (in the Julian calendar).
@@ -9298,12 +9283,9 @@ Init_date_core(void)
9298
9283
* it just refers to "chronological Julian day number", not the
9299
9284
* original.
9300
9285
*
9301
-
* In the Date and DateTime classes, this is called "ajd" and "jd."
9302
-
*
9303
-
* Date.jd(2456004)
9304
-
* This refers to 2,456,004 days since January 1, 4713 BCE.
9286
+
* In those classes, those are so-called "ajd" and "jd".
9305
9287
*
9306
-
* === Modified julian day number
9288
+
* === modified julian day number
9307
9289
*
9308
9290
* The modified Julian day number is in elapsed days since midnight
9309
9291
* (Coordinated universal time) on November 17, 1858 CE (in the
@@ -9319,10 +9301,8 @@ Init_date_core(void)
9319
9301
* appears, it just refers to "chronological modified Julian day
9320
9302
* number", not the original.
9321
9303
*
9322
-
* In the Date and DateTime classes, this is called "mjd."
9304
+
* In those classes, this is so-called "mjd".
9323
9305
*
9324
-
* Date.new(2012,03,17).mjd #=> 56003
9325
-
* 2012-03-17 is 56,003 days after November 17, 1858 CE.
0 commit comments