internal static long Parse()

in csharp/EPAM.Deltix.HdTime/Parsers.cs [839:854]


			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.ResetTs(); // TODO: Remove
				int end = Parse(src, ref value,
					fmt == ctx.LastTsFmtStr
						? ctx.LastTsTemplate
						: ctx.TimeSpanParser.GetTemplate(fmt, ctx.TsTemplateCache));

				return value.GetTs();
			}