Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Created December 20, 2019 20:31
Show Gist options
  • Save changhuixu/07afdc4699886b497fa8a04765fcc966 to your computer and use it in GitHub Desktop.
Save changhuixu/07afdc4699886b497fa8a04765fcc966 to your computer and use it in GitHub Desktop.
CronExpression expression = CronExpression.Parse("* * * * *");
DateTimeOffset? next = expression.GetNextOccurrence(DateTimeOffset.Now, TimeZoneInfo.Local);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment