Stata 15 help for tc()

[FN] Date and time functions

Function

tC(l) Description: convenience function to make typing dates and times in expressions easier Same as tc(), except returns leap second-adjusted values; for example, typing tc(29nov2007 9:15) is equivalent to typing 1511946900000, whereas tC(29nov2007 9:15) is 1511946923000. Domain l: datetime literal strings 01jan0100 00:00:00.000 to 31dec9999 23:59:59.999 Range: datetimes 01jan0100 00:00:00.000 to 31dec9999 23:59:59.999 (integers -58,695,840,000,000 to >253,717,919,999,999)

tc(l) Description: convenience function to make typing dates and times in expressions easier For example, typing tc(2jan1960 13:42) is equivalent to typing 135720000; the date but not the time may be omitted, and then 01jan1960 is assumed; the seconds portion of the time may be omitted and is assumed to be 0.000; tc(11:02) is equivalent to typing 39720000. Domain l: datetime literal strings 01jan0100 00:00:00.000 to 31dec9999 23:59:59.999 Range: datetimes 01jan0100 00:00:00.000 to 31dec9999 23:59:59.999 (integers -58,695,840,000,000 to 253,717,919,999,999)


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index