clarified: more operations;
authorFabian Huch <huch@in.tum.de>
Tue, 21 Jan 2025 11:15:34 +0100
changeset 81886 88060e644af7
parent 81885 b1e1019a78e4
child 81887 9a85d296ab81
clarified: more operations;
src/Pure/Build/build_ci.scala
--- a/src/Pure/Build/build_ci.scala	Tue Jan 21 11:14:00 2025 +0100
+++ b/src/Pure/Build/build_ci.scala	Tue Jan 21 11:15:34 2025 +0100
@@ -71,6 +71,8 @@
 
   object Timed {
     def nightly(start: Time = Time.hms(0, 17, 0)): Timed = Timed(Date.Daily(start))
+    def weekly(day: Date.Day = Date.Day.sun, start: Time = Time.hms(0, 17, 0)): Timed =
+      Timed(Date.Weekly(day, Date.Daily(start)))
   }
 
   case class Timed(cycle: Date.Cycle) extends Trigger {