Kaydet (Commit) 91db8257 authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS eforms4 (1.2.16); FILE MERGED

2004/12/10 09:25:44 fs 1.2.16.1: #i36359# date-time handling
üst 9463e38a
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: stringrepresentation.cxx,v $ * $RCSfile: stringrepresentation.cxx,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: obo $ $Date: 2004-11-16 12:12:56 $ * last change: $Author: vg $ $Date: 2005-03-23 11:58:43 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -302,7 +302,7 @@ namespace pcr ...@@ -302,7 +302,7 @@ namespace pcr
aBuffer.append( (sal_Int32)aUnoDateTime.Minutes ); aBuffer.append( (sal_Int32)aUnoDateTime.Minutes );
aBuffer.appendAscii( ":" ); aBuffer.appendAscii( ":" );
aBuffer.append( (sal_Int32)aUnoDateTime.Seconds ); aBuffer.append( (sal_Int32)aUnoDateTime.Seconds );
aBuffer.appendAscii( ":" ); aBuffer.appendAscii( "." );
aBuffer.append( (sal_Int32)aUnoDateTime.HundredthSeconds ); aBuffer.append( (sal_Int32)aUnoDateTime.HundredthSeconds );
_rStringRep = aBuffer.makeStringAndClear(); _rStringRep = aBuffer.makeStringAndClear();
...@@ -533,10 +533,10 @@ namespace pcr ...@@ -533,10 +533,10 @@ namespace pcr
nSepPos = _rStringRep.indexOf( ':', nPrevSepPos = nSepPos + 1 ); nSepPos = _rStringRep.indexOf( ':', nPrevSepPos = nSepPos + 1 );
aUnoDateTime.Minutes = (sal_Int16)_rStringRep.copy( nPrevSepPos, nSepPos - nPrevSepPos ).toInt32(); aUnoDateTime.Minutes = (sal_Int16)_rStringRep.copy( nPrevSepPos, nSepPos - nPrevSepPos ).toInt32();
nSepPos = _rStringRep.indexOf( ':', nPrevSepPos = nSepPos + 1 ); nSepPos = _rStringRep.indexOf( '.', nPrevSepPos = nSepPos + 1 );
aUnoDateTime.Seconds = (sal_Int16)_rStringRep.copy( nPrevSepPos, nSepPos - nPrevSepPos ).toInt32(); aUnoDateTime.Seconds = (sal_Int16)_rStringRep.copy( nPrevSepPos, nSepPos - nPrevSepPos ).toInt32();
aUnoDateTime.Seconds = (sal_Int16)_rStringRep.copy( nSepPos + 1 ).toInt32(); aUnoDateTime.HundredthSeconds = (sal_Int16)_rStringRep.copy( nSepPos + 1 ).toInt32();
_rValue <<= aUnoDateTime; _rValue <<= aUnoDateTime;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment