B4X:
Log($"The time is: ${DateTime.Time(DateTime.now)}"$) 'correct one'
'following two incorrect lines don't cause any error or warning:
Log("The time is: ${DateTime.Time(DateTime.now)}"$) 'missing the starting $
Log($"The time is: ${DateTime.Time(DateTime.now)}") 'missing the ending $