search for: tm_yday

Displaying 8 results from an estimated 8 matches for "tm_yday".

2009 Jul 21
1
Problem with INTERNALDATE when the year in localtime and GMT different
In my thought utc_offset function in src/lib/utc-offset.c returns wrong offset value when the year in localtime and GMT different. /* max offset of 24 hours */ if (ltm.tm_yday < gtm.tm_yday) offset = -24 * 60; else if (ltm.tm_yday > gtm.tm_yday) offset = 24 * 60; else offset = 0; I think this code should be modified as followings. /* max offset of 24 hours */ if ((ltm.tm_year == gtm.tm_year && ltm.tm_yday < gtm.tm_yday) || (ltm.tm_year < gt...
2007 Mar 21
1
bug and patch: strptime first-of-month error in (possibly unsupported use of) "%j" format (PR#9577)
...ptime(1 + cumsum(c(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30)), "%j") [1] NA NA NA NA NA NA NA NA NA NA NA > The problem is an edge-case comparison in datetime.c:glibc_fix(). This generates a date like "Jan 32", which validate_tm() catches and NAs. (Values of field tm->tm_yday start at 0, not 1.) ================================================================================= PATCH: --- R/src/main/datetime.c (revision 40860) +++ R/src/main/datetime.c (working copy) @@ -796,7 +796,7 @@ if(tm->tm_yday != NA_INTEGER) { /* since we have yday, let that take preced...
2002 Mar 08
1
1st January isn't (PR#1370)
In today's pre1.5.0 > ISOdate(2002,1,1) [1] "2002-03-01 04:00:00 PST" > ISOdate(2002,1,1)==ISOdate(2002,3,1) [1] TRUE It doesn't seem to happen for days other than 1/1 -thomas > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status Under development (unstable) major 1 minor 5.0 year 2002 month
2012 Oct 03
3
2.4-beta fixes for MinGW
...me = gmtime_r(&time1, &gmt) +#else + /* gmtime() on W32 breaks POSIX and IS thread-safe (uses TLS) */ + thetime = gmtime (&time1); + if (thetime) + memcpy (&gmt, thetime, sizeof (gmt)); +#endif + /* FIXME: bail out if gmtime* returns NULL */ time_days = t->tm_yday - gmt.tm_yday;
2009 Feb 27
0
POSIXlt, POSIXct, strptime, GMT and 1969-12-31 23:59:59
..." mday: %d\n" " mon: %d\n" " year: %d\n" " wday: %d\n" " yday: %d\n", tm.tm_sec, tm.tm_min, tm.tm_hour, tm.tm_mday, tm.tm_mon, tm.tm_year, tm.tm_wday, tm.tm_yday); printf("seconds since the Epoch: %d\n", t); return 0; } -- Jeffrey Ryan jeffrey.ryan at insightalgo.com ia: insight algorithmics www.insightalgo.com
2004 Jan 11
1
strange behaviour when converting from char to POSIX (PR#6427)
On Sun, 11 Jan 2004, Dirk Eddelbuettel wrote: > On Fri, Jan 09, 2004 at 06:01:27PM +0100, christoph.schmutz@meteoschweiz.ch wrote: > > Full_Name: Christoph Schmutz, MeteoSchweiz, Switzerland > > Version: R1.7.1, R1.8.1 > > OS: windows2000, solaris sunOS 5.8 > > Submission from: (NULL) (141.249.133.6) > > > > > > > > I'm not sure if I
2001 Oct 31
4
strptime bug (PR#1155)
## rw1031 Version 1.3.1 (2001-08-31) ## > version ## _ ## platform i386-pc-mingw32 ## arch x86 ## os Win32 ## system x86, Win32 ## status ## major 1 ## minor 3.1 ## year 2001 ## month 08 ## day 31 ## language R ## The
2010 Feb 18
4
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Hi all, Environment: Compiler: IBM XL C/C++ Enterprise Edition for AIX v9.0 Server: AIX 5.3 TL 10 SP1 I use configure with the following option to configure the makefile. --------------------------------? export CC=cc export CFLAGS="-I/opt/freeware/include/openssl/ -I/usr/local/include" export LDFLAGS="-L/opt/freeware/lib/ -L/usr/local/lib" ./configure --prefix=/usr/local