summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-21 12:36:28 +0200
committerNoel Grandin <noel@peralex.com>2014-02-25 15:16:55 +0200
commit700161cce79df7137fc4db433db6e41905d76975 (patch)
tree98dc34199ce26c88f17a4711c12709f23c7a84ba /unotools
parentc8f83ce1dbf5544f6aaa91775db6820a69c3c061 (diff)
remove unused code utl::toISO8601(com::sun::star::util::Time const&)
Change-Id: I8df1934c7392ec38918be2a5b986c6ca871f9d15
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/misc/datetime.cxx27
1 files changed, 0 insertions, 27 deletions
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index 176769d989cd..8283807e738c 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -222,33 +222,6 @@ OUString toISO8601(const starutil::DateTime& rDateTime)
return rBuffer.makeStringAndClear();
}
-OUString toISO8601(const starutil::Time& rTime)
-{
- OUStringBuffer rBuffer;
- if( rTime.Hours < 10 )
- rBuffer.append('0');
- rBuffer.append((sal_Int32) rTime.Hours);
- rBuffer.append(':');
- if( rTime.Minutes < 10 )
- rBuffer.append('0');
- rBuffer.append((sal_Int32) rTime.Minutes);
- rBuffer.append(':');
- if( rTime.Seconds < 10 )
- rBuffer.append('0');
- rBuffer.append((sal_Int32) rTime.Seconds);
- if ( rTime.NanoSeconds > 0)
- {
- OSL_ENSURE(rTime.NanoSeconds < 1000000000,"NanoSeconds cannot be more than 999 999 999");
- rBuffer.append(',');
- std::ostringstream ostr;
- ostr.fill('0');
- ostr.width(9);
- ostr << rTime.NanoSeconds;
- rBuffer.append(OUString::createFromAscii(ostr.str().c_str()));
- }
- return rBuffer.makeStringAndClear();
-}
-
/** convert ISO8601 DateTime String to util::DateTime */
bool ISO8601parseDateTime(const OUString &rString, starutil::DateTime& rDateTime)
{