String serializes the schedule to its original format. The leading CRON_TZ is maintained.
()
| 141 | // String serializes the schedule to its original format. |
| 142 | // The leading CRON_TZ is maintained. |
| 143 | func (s Schedule) String() string { |
| 144 | var sb strings.Builder |
| 145 | _, _ = sb.WriteString("CRON_TZ=") |
| 146 | _, _ = sb.WriteString(s.sched.Location.String()) |
| 147 | _, _ = sb.WriteString(" ") |
| 148 | _, _ = sb.WriteString(s.cronStr) |
| 149 | return sb.String() |
| 150 | } |
| 151 | |
| 152 | // Humanize returns a slightly more human-friendly representation of the |
| 153 | // schedule. |