Hi All
A basic question that I would appreciate if someone can help with:
I have data that shows the patent id and the issuance date and the exact time. The patent identifier is "patent" and the variable "issuance" includes both the date and the time of issuance.
First, how to separate the time (e.g.,19:54:00) from the date (e.g.,15feb2004) in two different variables?
Second, how to create a dummy=1 when the issuance time is not between 10:30 am to 7.00pm, and 0 otherwise?
I think I should use the function clock but not sure how it can be done here. Thanks
The patent data looks like this below:
A basic question that I would appreciate if someone can help with:
I have data that shows the patent id and the issuance date and the exact time. The patent identifier is "patent" and the variable "issuance" includes both the date and the time of issuance.
First, how to separate the time (e.g.,19:54:00) from the date (e.g.,15feb2004) in two different variables?
Second, how to create a dummy=1 when the issuance time is not between 10:30 am to 7.00pm, and 0 otherwise?
I think I should use the function clock but not sure how it can be done here. Thanks
The patent data looks like this below:
Code:
patent issuance 10001 15feb2004 00:00:00 10001 18may2004 00:00:00 10001 17may2005 15:13:00 10001 27sep2005 16:55:00 10001 14nov2005 19:54:00 10002 12apr2005 17:18:00 10002 23jul2005 18:27:00 10002 12oct2005 18:54:00 10002 20jan2006 18:58:00 10002 21apr2006 18:20:00
Comment