03-22-2010 12:40 PM - edited 03-15-2019 09:54 PM
I asked a question before aobut pulling CDR's from the Command Line after using SSH to connect to the Publisher. I got all that and am able to pull what I wanted with one exception. Time.
Is there a way like before in SQL to get the time to convert and then pull from a specific date range? Like say I want only calls from today between 3 and 4 PM.
03-22-2010 01:50 PM
Online - http://www.onlineconversion.com/unix_time.htm
Windows - http://software.ccschmidt.de/#UTC
Michael
03-22-2010 01:54 PM
I might not have been spcific enough. I am looking to put the time range in my query from the command line.
03-22-2010 01:58 PM
You said "I got all that and am able to pull what I wanted with one exception. Time.".
So I'm assuming you know all the SQL syntax but just having difficulty on converting the time to Unix format. If that's the case, the post above gives you both online and offline tools to do the conversion.
For exmaple, 3/22/2010, 3:00PM = 1269270000. 3/22/2010, 4:00PM = 1269273600.
SQL command would be:
run sql select * from car:tbl_billing_data where datetimeconnect >= 1269270000 AND datetimeconnect < 1269273600
Michael
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide