Looks, like it's missing a paramater inside this formula

string TimeToStr( datetime value, int style=TIME_DATE|TIME_MINUTES)Converts worth containing time in seconds that has passed since January 1, 1970, into a string of yyyy.mm.dd hh:mi format. Parameters:
worth - Favorable amount of seconds that have passed since 00:00, January 1, 1970. Mode - Optional data output mode can be one or combination of:
TIME_DATE will get result as yyyy.mm.dd,
TIME_MINUTES will get result as hh:mi,
TIME_SECONDS will get result as hh:mi:ss. Sample:
string var1=TimeToStr(TimeCurrent(),TIME_DATE|TIME_SECOND S);