\u003C/a> via \u003Ccode>npm install schyntax\u003C/code>.\n\n{% highlight javascript %}\nvar schyntax = require('schyntax');\n\nvar sch = schyntax('min(*%2)'); // create Schedule object\nvar events = [];\nvar d = new Date(); // start from right now\nfor (var i = 0; i < 5; i++) {\nd = sch.next(d); // get next event time after the \u003Ccode>d\u003C/code> Date argument\nevents.push(d);\n}\n{% endhighlight %}\n\n\u003Ch4>C# .NET\u003C/h4>\n\nSchyntax for .NET is available on nuget.org. \u003Ca href=\"http://badge.fury.io/nu/Schyntax\">\u003Cimg src=\"http://stackoverflow.blog/wp-content/uploads/2017/02/Schyntax.svg\" alt=\"NuGet version\" />\u003C/a>\n\n{% highlight csharp %}\nusing Schyntax;\n\nvar sch = new Schedule(\"min(*%2)\"); // create Schedule object\nvar events = new List();\nvar d = DateTimeOffset.UtcNow; // start from right now\nfor (var i = 0; i < 5; i++)\n{\nd = sch.Next(d); // get next event time after the \u003Ccode>d\u003C/code> Date argument\nevents.Add(d);\n}\n{% endhighlight %}\n\n→ \u003Cstrong>goto\u003C/strong>: \u003Ca href=\"http://bret.codes/schyntax-part-2\">In Part 2, we'll use a scheduled task runner to put schyntax to work.\u003C/a>. We'll also look at how my team at Stack Overflow is using it to improve consistency in our scheduled tasks.","html","2015-08-21T12:00:00.000Z",{"current":799},"a-better-syntax-for-scheduled-tasks",[801],{"_createdAt":802,"_id":803,"_rev":804,"_type":805,"_updatedAt":802,"slug":806,"title":808},"2023-05-23T16:43:21Z","wp-tagcat-engineering","9HpbCsT2tq0xwozQfkc4ih","blogTag",{"current":807},"engineering","Engineering","A Better Syntax for Scheduled Tasks",[811,817,823,828],{"_id":812,"publishedAt":813,"slug":814,"sponsored":12,"title":816},"9fd8968d-abaa-4253-b14b-3129c6e85408","2025-09-10T17:00:00.000Z",{"_type":10,"current":815},"ai-vs-gen-z","AI vs Gen Z: How AI has changed the career pathway for junior developers",{"_id":818,"publishedAt":819,"slug":820,"sponsored":12,"title":822},"1d082483-6dc6-424b-8b09-9c84b54779da","2025-09-02T17:00:00.000Z",{"_type":10,"current":821},"back-to-school-developers-at-stack-overflow-have-some-advice-for-you","Back to school? Developers at Stack Overflow have some advice for you",{"_id":824,"publishedAt":819,"slug":825,"sponsored":12,"title":827},"5cd91820-9515-4be5-87ae-e919fd443c18",{"_type":10,"current":826},"getting-started-on-stack-overflow-a-step-by-step-guide-for-students","Getting started on Stack Overflow: a step-by-step guide for students",{"_id":829,"publishedAt":819,"slug":830,"sponsored":12,"title":832},"614538a9-c352-4024-adf1-fa44a9f911b6",{"_type":10,"current":831},"stack-overflow-is-helping-you-learn-to-code-with-new-resources","Stack Overflow is helping you learn to code with new resources",{"count":520,"lastTimestamp":834},"2023-05-25T09:45:54Z",["Reactive",836],{"$sarticleModal":837},false,["Set"],["ShallowReactive",840],{"sanity-6nyDHPFcMmC1bp2n-_7j5yifxBz8chS1iNQSzcNTkKc":-1,"sanity-comment-wp-post-5147-1758163920358":-1},"/2015/08/21/a-better-syntax-for-scheduled-tasks"]