ttime.cxx (89b56da7) | ttime.cxx (27ead02a) |
---|---|
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 --- 82 unchanged lines hidden (view full) --- 91 return aTime; 92} 93 94// ======================================================================= 95 96Time::Time() 97{ 98#if defined( OS2 ) | 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 --- 82 unchanged lines hidden (view full) --- 91 return aTime; 92} 93 94// ======================================================================= 95 96Time::Time() 97{ 98#if defined( OS2 ) |
99 DATETIME aDateTime; | 99 PM_DATETIME aDateTime; |
100 DosGetDateTime( &aDateTime ); 101 102 // Zeit zusammenbauen 103 nTime = (((sal_Int32)aDateTime.hours)*1000000) + 104 (((sal_Int32)aDateTime.minutes)*10000) + 105 (((sal_Int32)aDateTime.seconds)*100) + 106 ((sal_Int32)aDateTime.hundredths); 107#elif defined( WNT ) --- 203 unchanged lines hidden (view full) --- 311} 312 313// ----------------------------------------------------------------------- 314 315Time Time::GetUTCOffset() 316{ 317#if defined( OS2 ) 318#undef timezone | 100 DosGetDateTime( &aDateTime ); 101 102 // Zeit zusammenbauen 103 nTime = (((sal_Int32)aDateTime.hours)*1000000) + 104 (((sal_Int32)aDateTime.minutes)*10000) + 105 (((sal_Int32)aDateTime.seconds)*100) + 106 ((sal_Int32)aDateTime.hundredths); 107#elif defined( WNT ) --- 203 unchanged lines hidden (view full) --- 311} 312 313// ----------------------------------------------------------------------- 314 315Time Time::GetUTCOffset() 316{ 317#if defined( OS2 ) 318#undef timezone |
319 DATETIME aDateTime; | 319 PM_DATETIME aDateTime; |
320 DosGetDateTime( &aDateTime ); 321 322 // Zeit zusammenbauen 323 if ( aDateTime.timezone != -1 ) 324 { 325 short nTempTime = (short)Abs( aDateTime.timezone ); 326 Time aTime( 0, (sal_uInt16)nTempTime ); 327 if ( aDateTime.timezone > 0 ) --- 114 unchanged lines hidden --- | 320 DosGetDateTime( &aDateTime ); 321 322 // Zeit zusammenbauen 323 if ( aDateTime.timezone != -1 ) 324 { 325 short nTempTime = (short)Abs( aDateTime.timezone ); 326 Time aTime( 0, (sal_uInt16)nTempTime ); 327 if ( aDateTime.timezone > 0 ) --- 114 unchanged lines hidden --- |