3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
24 * @brief Time/date utilities
30 #include <apr_pools.h>
33 #include "svn_error.h"
37 #endif /* __cplusplus */
40 /** Convert @a when to a <tt>const char *</tt> representation allocated
41 * in @a pool. Use svn_time_from_cstring() for the reverse
45 svn_time_to_cstring(apr_time_t when,
48 /** Convert @a data to an @c apr_time_t @a when.
49 * Use @a pool for temporary memory allocation.
52 svn_time_from_cstring(apr_time_t *when,
56 /** Convert @a when to a <tt>const char *</tt> representation allocated
57 * in @a pool, suitable for human display in UTF8.
60 svn_time_to_human_cstring(apr_time_t when,
64 /** Convert a human-readable date @a text into an @c apr_time_t, using
65 * @a now as the current time and storing the result in @a result.
66 * The local time zone will be used to compute the appropriate GMT
67 * offset if @a text contains a local time specification. Set @a
68 * matched to indicate whether or not @a text was parsed successfully.
69 * Perform any allocation in @a pool. Return an error iff an internal
70 * error (rather than a simple parse error) occurs.
73 svn_parse_date(svn_boolean_t *matched,
80 /** Sleep until the next second, to ensure that any files modified
81 * after we exit have a different timestamp than the one we recorded.
83 * @deprecated Provided for backward compatibility with the 1.5 API.
84 * Use svn_io_sleep_for_timestamps() instead.
88 svn_sleep_for_timestamps(void);
92 #endif /* __cplusplus */
94 #endif /* SVN_TIME_H */