Esempio n. 1
0
        private bool FormatDate(string date, string timeZone, out long unix)
        {
            if (_formattingService.TryFormatDateToUnix(date, timeZone, out var result))
            {
                unix = result;
            }
            else
            {
                unix = 0;
            }

            return(unix != 0);
        }