internal static long Parse()

in csharp/EPAM.Deltix.HdTime/Parsers.cs [734:749]


			internal static long Parse(String src, String fmt)
			{
				Context ctx = tls;
				if (null == ctx)
					ctx = tls = new Context();

				Debug.Assert(fmt != null);
				ParsedValue value = new ParsedValue();
				value.ResetDt();
				int end = Parse(src, ref value,
					fmt == ctx.LastDtFmtStr
						? ctx.LastDtTemplate
						: ctx.DateTimeParser.GetTemplate(fmt, ctx.DtTemplateCache));

				return value.GetDt();
			}