1*ed2f6d3bSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*ed2f6d3bSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*ed2f6d3bSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*ed2f6d3bSAndrew Rist * distributed with this work for additional information 6*ed2f6d3bSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*ed2f6d3bSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*ed2f6d3bSAndrew Rist * "License"); you may not use this file except in compliance 9*ed2f6d3bSAndrew Rist * with the License. You may obtain a copy of the License at 10*ed2f6d3bSAndrew Rist * 11*ed2f6d3bSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*ed2f6d3bSAndrew Rist * 13*ed2f6d3bSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*ed2f6d3bSAndrew Rist * software distributed under the License is distributed on an 15*ed2f6d3bSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*ed2f6d3bSAndrew Rist * KIND, either express or implied. See the License for the 17*ed2f6d3bSAndrew Rist * specific language governing permissions and limitations 18*ed2f6d3bSAndrew Rist * under the License. 19*ed2f6d3bSAndrew Rist * 20*ed2f6d3bSAndrew Rist *************************************************************/ 21*ed2f6d3bSAndrew Rist 22*ed2f6d3bSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef ISO8601_CONVERTER_HXX_INCLUDED 25cdf0e10cSrcweir #define ISO8601_CONVERTER_HXX_INCLUDED 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <string> 28cdf0e10cSrcweir 29cdf0e10cSrcweir //----------------------------------- 30cdf0e10cSrcweir /* Converts ISO 8601 conform date/time 31cdf0e10cSrcweir represenation to the representation 32cdf0e10cSrcweir conforming to the current locale 33cdf0e10cSrcweir */ 34cdf0e10cSrcweir std::wstring iso8601_date_to_local_date(const std::wstring& iso8601date); 35cdf0e10cSrcweir 36cdf0e10cSrcweir //------------------------------------ 37cdf0e10cSrcweir /* Converts ISO 8601 conform duration 38cdf0e10cSrcweir representation to the representation 39cdf0e10cSrcweir conforming to the current locale 40cdf0e10cSrcweir */ 41cdf0e10cSrcweir std::wstring iso8601_duration_to_local_duration(const std::wstring& iso8601duration); 42cdf0e10cSrcweir 43cdf0e10cSrcweir #endif 44