time.c (647f063d) | time.c (509a48ff) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 27 unchanged lines hidden (view full) --- 36//-------------------------------------------------- 37 38sal_Bool SAL_CALL osl_getSystemTime(TimeValue* pTimeVal) 39{ 40 SYSTEMTIME SystemTime; 41 FILETIME CurTime, OffTime; 42 __int64 Value; 43 | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 27 unchanged lines hidden (view full) --- 36//-------------------------------------------------- 37 38sal_Bool SAL_CALL osl_getSystemTime(TimeValue* pTimeVal) 39{ 40 SYSTEMTIME SystemTime; 41 FILETIME CurTime, OffTime; 42 __int64 Value; 43 |
44 OSL_ASSERT(pTimeVal != 0); | 44 OSL_ASSERT(pTimeVal != NULL); |
45 46 GetSystemTime(&SystemTime); 47 SystemTimeToFileTime(&SystemTime, &CurTime); 48 49 SystemTime.wYear = 1970; 50 SystemTime.wMonth = 1; 51 SystemTime.wDayOfWeek = 0; 52 SystemTime.wDay = 1; --- 160 unchanged lines hidden --- | 45 46 GetSystemTime(&SystemTime); 47 SystemTimeToFileTime(&SystemTime, &CurTime); 48 49 SystemTime.wYear = 1970; 50 SystemTime.wMonth = 1; 51 SystemTime.wDayOfWeek = 0; 52 SystemTime.wDay = 1; --- 160 unchanged lines hidden --- |