fork(47) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. TimeSpan span = TimeSpan.FromHours(16);
  8. DateTime time = DateTime.Today + span;
  9. String result = time.ToString("hh:mm tt");
  10. Console.Write(result);
  11. }
  12. }
Success #stdin #stdout 0.03s 37016KB
stdin
Standard input is empty
stdout
04:00 PM