|
SUBMIT_TIME |
|||
| The SUBMIT_TIME integer tag appears in message
taglists returned from the GET_Q_ENTRIES_INFO
function. This tag contains the date and time when a message was
first processed by the fax server. For messages submitted to the
server, this is the time when SEND_MESSAGE
was called. For received faxes, this is the time when a received fax
was placed in the received queue.
The integer value of the SUBMIT_TIME tag represents the number of milliseconds in Coordinated Universal Time (UTC) between midnight January 1, 1970 and the submission time. When this value is shown to users, it should first be converted to reflect the time in a local time-zone. |
|||
| Type | Max Size | Multiple Allowed | |
| Integer | 8 bytes | No | |
Example: |
|||
|
function
GetReceivedMessages() { var Tl, Sl; var Msg = ""; Tl = CAS.New(); CAS.AddTag(Tl,"GET_Q_ENTRIES_INFO",""); CAS.AddTag(Tl,"REGISTERED_NAME","Fred"); CAS.AddTag(Tl,"REGISTERED_PASSWORD",""); CAS.AddTag(Tl,"USER_NAME","Fred"); CAS.AddTag(Tl,"Q_ID","Q_ID_RECEIVED""); Sl = CAS.CreateSection(Tl,"RESPONSE_INCLUDE_ONLY",""); CAS.AddTag(Sl,"SUBMIT_TIME",0); CAS.AddTag(Sl,"MESSAGE_COMPLETION_CODE",""); CAS.AddTag(Sl,"RECEIVER_CSID",""); CAS.AddTag(Sl,"PAGE_COUNT",""); CAS.CloseSection(Sl); // Get messages on this already open session Tl = CAS.Send(Instance,Tl); if ( CAS.GetTag(Tl,"STATUS_NUM",0) == 0 ) { // The number of messages is in the root of the reply taglist QueueCount = CAS.GetTag(Tl,"NUMBER_OF_Q_ENTRIES",0); // Each message is in it's own sub-section for ( a = 0; a < QueueCount; a++) { var st; Sl = CAS.OpenSection(Tl,"MESSAGE_HANDLE[" + a + "]"); Msg += CAS.GetTag(Sl,"MESSAGE_HANDLE",0) + ','; // Use JavaScript to format the date/time like so: // "Wednesday, October 25, 2000 2:47:46 PM" st = new Date(parseInt(CAS.GetTag(Sl,"SUBMIT_TIME",0))); Msg += '"' + st.toLocaleString() + '",'; Msg += CAS.GetTag(Sl,"MESSAGE_COMPLETION_CODE",0) + ','; Msg += CAS.GetTag(Sl,"RECEIVER_CSID",0) + ','; Msg += CAS.GetTag(Sl,"PAGE_COUNT",0) + '\r\n'; CAS.CloseSection(Sl); } } else { // Return the error Msg = CAS.GetTag(Tl,"STATUS",0); } CAS.Delete(Tl); return(Msg); } |
|||
See Also: |
|||
| GET_Q_ENTRIES_INFO, SEND_MESSAGE, SCHEDULE | |||
|
|