fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static DateTime timeLeft { get; set; } = DateTime.Now.AddMinutes(-5);
  6.  
  7. public static void Main()
  8. {
  9. Rec();
  10. }
  11.  
  12. public static void Rec()
  13. {
  14. Console.WriteLine("Rec started");
  15.  
  16. TimeSpan timeSpan = timeLeft.AddDays(1).Subtract(DateTime.Now);
  17. if (timeSpan > TimeSpan.Zero)
  18. {
  19. Console.WriteLine("Reklama");
  20. }
  21. }
  22. }
Success #stdin #stdout 0.02s 16304KB
stdin
Standard input is empty
stdout
Rec Started
Reklama