| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 1997 Kungliga Tekniska Högskolan | 2 * Copyright (c) 1997 Kungliga Tekniska Högskolan |
| 3 * (Royal Institute of Technology, Stockholm, Sweden). | 3 * (Royal Institute of Technology, Stockholm, Sweden). |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| 11 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
| 12 * | 12 * |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 res += ndays[is_leap(tm->tm_year)][i]; | 69 res += ndays[is_leap(tm->tm_year)][i]; |
| 70 res += tm->tm_mday - 1; | 70 res += tm->tm_mday - 1; |
| 71 res *= 24; | 71 res *= 24; |
| 72 res += tm->tm_hour; | 72 res += tm->tm_hour; |
| 73 res *= 60; | 73 res *= 60; |
| 74 res += tm->tm_min; | 74 res += tm->tm_min; |
| 75 res *= 60; | 75 res *= 60; |
| 76 res += tm->tm_sec; | 76 res += tm->tm_sec; |
| 77 return res; | 77 return res; |
| 78 } | 78 } |
| OLD | NEW |