Beispiel #1
0
        /// <summary>
        ///   Converts the specified string representation of a date and time to its <see cref="HdDateTime" /> equivalent and
        ///   returns a value that indicates whether the conversion succeeded.
        /// </summary>
        /// <param name="source">A string containing a date and time to convert.</param>
        /// <param name="provider">An object that supplies culture-specific formatting information.</param>
        /// <param name="result">
        ///   An object that is equivalent to the date and time contained in <paramref name="source" />.
        /// </param>
        /// <returns>
        ///   A value that indicates whether the conversion succeeded.
        /// </returns>
        public Boolean TryParse(String source, IFormatProvider provider, out HdDateTime result)
        {
            String ownSource = String.Copy(source);

            return(PreciseTimeParse.TryParse(ownSource, provider, out result));
        }
Beispiel #2
0
        /// <summary>
        ///   Converts the specified string representation of a date and time to its <see cref="HdDateTime" /> equivalent and
        ///   returns a value that indicates whether the conversion succeeded.
        /// </summary>
        /// <param name="source">A string containing a date and time to convert.</param>
        /// <param name="result">
        ///   An object that is equivalent to the date and time contained in <paramref name="source" />.
        /// </param>
        /// <returns>
        ///   A value that indicates whether the conversion succeeded.
        /// </returns>
        public Boolean TryParse(String source, out HdDateTime result)
        {
            String ownSource = String.Copy(source);

            return(PreciseTimeParse.TryParse(ownSource, null, out result));
        }