117 of 307
ZBasic System Library 107 ZX Microcontroller Family GetDayOfYear Type Function returning UnsignedInteger Invocation GetDayOfYear(dayNum) GetDayOfYear(dayNum, year) Parameter Method Type Description dayNum ByVal integral The day number to convert to day of year and year. year ByRef int16 The variable in which the year will be stored. Discussion This routine computes the day of the year and the year corresponding to a day number (such as represented by Register.RTCDay). The first day of the year is numbered 1. If the second parameter is present, the variable to which it refers will receive the year value. Example Dim dayOfYear as UnsignedInteger Dim year as UnsignedInteger dayOfYear = GetDayOfYear(Register.RTCDay, year) Compatibility This function is not available in BasicX compatibility mode. See Also GetDate, GetDayNumber, GetDayOfWeek