The R Project SVN R

Rev

Rev 69175 | Rev 77990 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69175 Rev 69727
Line 511... Line 511...
511
		else {
511
		else {
512
		    /* We have to convert the minutes into decimal.  */
512
		    /* We have to convert the minutes into decimal.  */
513
		    if (val % 100 >= 60) return NULL;
513
		    if (val % 100 >= 60) return NULL;
514
		    val = (val / 100) * 100 + ((val % 100) * 50) / 30;
514
		    val = (val / 100) * 100 + ((val % 100) * 50) / 30;
515
		}
515
		}
516
		/* http://en.wikipedia.org/wiki/List_of_UTC_time_offsets */
516
		/* https://en.wikipedia.org/wiki/List_of_UTC_time_offsets */
517
		if (val > 1400) return NULL;
517
		if (val > 1400) return NULL;
518
		off = ((val * 3600) / 100);
518
		off = ((val * 3600) / 100);
519
		if (neg) off = -off;
519
		if (neg) off = -off;
520
		*poffset = off;
520
		*poffset = off;
521
	    }
521
	    }