6666 name is known or is "UTC', of length 3 including the abbreviations
6767 for all other timezones. (If the timezone does not use DST, the
6868 second abbreviation may be empty or may repeat the first, depending
69- on the platform., but it woll always be present.) However, if the
69+ on the platform., but it will always be present.) However, if the
7070 call to strptime() does not specify 'tz', this attribute is omitted.
7171
7272 Names for the date-times are optional (and rarely supplied):
@@ -113,8 +113,8 @@ There are two implementation paths here.
113113 Use the system time_t, struct tm and time-zone tables.
114114
115115 This can be use on glibc, macOS and Solaris (and probably FreeBSD),
116- but all except 64-bit glibc have isues we can try to work around.
117- It could in principlw be used om Windows but the issues there are
116+ but all except 64-bit glibc have issues we can try to work around.
117+ It could in principle be used om Windows but the issues there are
118118 too severe (no support for before 1970) to work around.
119119
120120 The system facilities are used for 1902-2037 and outside those
@@ -126,7 +126,7 @@ There are two implementation paths here.
126126 Other known issues are with strftime (macOS only supports offsets
127127 in multiple of half-hours), not having tzdata tables (possible on
128128 Alpine and now fatal when configuring) and odd issues reading the
129- time-zone tables, expecially fror 1939-1945.
129+ time-zone tables, especially for 1939-1945.
130130
1311312) USE_INTERNAL_MKTIME : Use substitutes from src/extra/tzone for
132132 mktime, gmtime_r, localtime_r, strftime with a R_ prefix. The
@@ -198,7 +198,7 @@ static const int month_days[12] =
198198 Return 0 if valid, -1 if invalid and uncorrectable, or a positive
199199 integer approximating the number of corrections done.
200200
201- Used in both paths in mktime0, in localtimee0 in PATH 1) and in
201+ Used in both paths in mktime0, in localtime0 in PATH 1) and in
202202 do_formatPOSIXlt, do_strptime, do_POSIXlt2D, do_balancePOSIXlt.
203203*/
204204static int validate_tm (stm * tm )
@@ -634,7 +634,7 @@ static stm * localtime0(const double *tp, const int local, stm *ltm)
634634
635635 double dday = floor (d /86400.0 );
636636// static stm ltm0, *res = <m0;
637- stm * res = ltm ; // be like localtine_r
637+ stm * res = ltm ; // be like localtime_r
638638 // This cannot exceed (2^31-1) years in either direction from 1970
639639 if (fabs (dday ) > 784368402400 ) { //bail out
640640 res -> tm_year = NA_INTEGER ;
@@ -809,7 +809,7 @@ static Rboolean set_tz(const char *tz, tzset_info *si)
809809#elif defined(HAVE_PUTENV )
810810 {
811811 /* This could be dynamic, but setenv is strongly preferred
812- (but not availanble on Windows)
812+ (but not available on Windows)
813813 "A program should not alter or free the string"
814814 */
815815 static char buff [1010 ];
0 commit comments