#C#6, 149 bytes#
C#6, 149 bytes
Thanks to Bob for saving 57 bytes!
using System;class P{static void Main(){DateTime a,x=new DateTime(2019,3,31);while((a=DateTime.Now)<x)Console.Write($"\r{x-a:ddd\\:hh\\:mm\\:ss}");}}
Ungolfed program:
using System;
class P
{
static void Main()
{
DateTime a,
x = new DateTime(2019, 3, 31);
while ( (a = DateTime.Now) < x)
Console.Write($"\r{x-a:ddd\\:hh\\:mm\\:ss}");
}
}
#C#, 210 206 159 bytes#
C#, 210 206 159 bytes
Thanks to Bob for saving another 47 bytes!
Thanks to Martin Smith for saving 4 bytes!
using System;class P{static void Main(){DateTime a,x=new DateTime(2019,3,31);while((a=DateTime.Now)<x)Console.Write("\r"+(x-a).ToString(@"ddd\:hh\:mm\:ss"));}}
Ungolfed program:
using System;
class P
{
static void Main()
{
DateTime a,
x = new DateTime(2019, 3, 31);
while ( (a = DateTime.Now) < x)
Console.Write("\r" + (x - a).ToString(@"ddd\:hh\:mm\:ss"));
}
}