summaryrefslogtreecommitdiff
path: root/tools/source/datetime
diff options
context:
space:
mode:
authorOliver Günther <mail@oliverguenther.de>2012-08-11 23:01:00 +0000
committerPhilipp Riemer <ruderphilipp@gmail.com>2012-08-19 21:26:59 +0200
commit9cadf9bdf3c9210d9b79eaaed32282d6b7bf9e12 (patch)
treebf2a2f36a9ba8e57f34d4ad4636819d014c338e2 /tools/source/datetime
parentc55a340a992199c5eb2d8b9cbe2fea539c6f83aa (diff)
fdo#39468: Translated German comments in core/tools/source
Change-Id: I28ec097a70a8d71312d9e8382c3cf71a1eabde88
Diffstat (limited to 'tools/source/datetime')
-rw-r--r--tools/source/datetime/tdate.cxx4
-rw-r--r--tools/source/datetime/ttime.cxx20
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx
index f49433a1c4ba..2cb3ab048cca 100644
--- a/tools/source/datetime/tdate.cxx
+++ b/tools/source/datetime/tdate.cxx
@@ -238,7 +238,7 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay,
// saturday
else if ( n1WDay == nMinimumNumberOfDaysInWeek + 1 )
{
- // Jahr nach Schaltjahr
+ // Year after leapyear
if ( Date( 1, 1, GetYear()-1 ).IsLeapYear() )
nWeek = 53;
else
@@ -256,7 +256,7 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay,
nWeek = (nDayOfYear + n1WDay) / 7;
if ( nWeek == 53 )
{
- // next x_Sonntag == first x_Sonntag in the new year
+ // next x_Sunday == first x_Sunday in the new year
// == still the same week!
long nTempDays = DateToDays( GetDay(), GetMonth(), GetYear() );
nTempDays += 6 - (GetDayOfWeek()+(7-(short)eStartDay)) % 7;
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx
index 966771862811..b32c09078e40 100644
--- a/tools/source/datetime/ttime.cxx
+++ b/tools/source/datetime/ttime.cxx
@@ -41,7 +41,7 @@ static sal_Int32 TimeToSec100( const Time& rTime )
sal_Int32 nSec = rTime.GetSec();
sal_Int32 n100Sec = rTime.Get100Sec();
-// Wegen Interal Compiler Error bei MSC, etwas komplizierter
+// Due to interal compiler error in MSC a little bit more complicated:
// return (n100Sec + (nSec*100) + (nMin*60*100) + (nHour*60*60*100) * nSign);
sal_Int32 nRet = n100Sec;
@@ -74,7 +74,7 @@ Time::Time( TimeInitSystem )
SYSTEMTIME aDateTime;
GetLocalTime( &aDateTime );
- // Zeit zusammenbauen
+ // construct time
nTime = (((sal_Int32)aDateTime.wHour)*1000000) +
(((sal_Int32)aDateTime.wMinute)*10000) +
(((sal_Int32)aDateTime.wSecond)*100) +
@@ -83,10 +83,10 @@ Time::Time( TimeInitSystem )
time_t nTmpTime;
struct tm aTime;
- // Zeit ermitteln
+ // determine time
nTmpTime = time( 0 );
- // Zeit zusammenbauen
+ // construct time
if ( localtime_r( &nTmpTime, &aTime ) )
{
nTime = (((sal_Int32)aTime.tm_hour)*1000000) +
@@ -105,7 +105,7 @@ Time::Time( const Time& rTime )
Time::Time( sal_uIntPtr nHour, sal_uIntPtr nMin, sal_uIntPtr nSec, sal_uIntPtr n100Sec )
{
- // Zeit normalisieren
+ // normalize time
nSec += n100Sec / 100;
n100Sec = n100Sec % 100;
nMin += nSec / 60;
@@ -113,7 +113,7 @@ Time::Time( sal_uIntPtr nHour, sal_uIntPtr nMin, sal_uIntPtr nSec, sal_uIntPtr n
nHour += nMin / 60;
nMin = nMin % 60;
- // Zeit zusammenbauen
+ // construct time
nTime = (sal_Int32)(n100Sec + (nSec*100) + (nMin*10000) + (nHour*1000000));
}
@@ -135,7 +135,7 @@ void Time::SetMin( sal_uInt16 nNewMin )
sal_Int32 nSec = GetSec();
sal_Int32 n100Sec = Get100Sec();
- // kein Ueberlauf
+ // no overflow
nNewMin = nNewMin % 60;
nTime = (n100Sec + (nSec*100) + (((sal_Int32)nNewMin)*10000) +
@@ -149,7 +149,7 @@ void Time::SetSec( sal_uInt16 nNewSec )
sal_Int32 nMin = GetMin();
sal_Int32 n100Sec = Get100Sec();
- // kein Ueberlauf
+ // no overflow
nNewSec = nNewSec % 60;
nTime = (n100Sec + (((sal_Int32)nNewSec)*100) + (nMin*10000) +
@@ -163,7 +163,7 @@ void Time::Set100Sec( sal_uInt16 nNew100Sec )
sal_Int32 nMin = GetMin();
sal_Int32 nSec = GetSec();
- // kein Ueberlauf
+ // no overflow
nNew100Sec = nNew100Sec % 100;
nTime = (((sal_Int32)nNew100Sec) + (nSec*100) + (nMin*10000) +
@@ -271,7 +271,7 @@ Time Time::GetUTCOffset()
sal_Int32 nUTC;
short nTempTime;
- // Evt. Wert neu ermitteln
+ // determine value again if needed
if ( (nCacheSecOffset == -1) ||
((nTicks - nCacheTicks) > 360000) ||
( nTicks < nCacheTicks ) // handle overflow