I have some code that gets the current date/time using in a line that looks like this:
long time_of_msg = System.currentTimeMillis()/1000;
Now I would like to call the function
void setAttribute(String name, Object value)
and pass it the value of time_of_msg.
The compile is giving me the error "setAttribute(java.lang.String, java.lang.Object) in ... cannot be applied to (java.lang.String, long).
I have tried casting, "toString()", and everything else I can think to do, but it continues to throw errors.
Any suggestions?
Thanks in advance,
~Lindsay
long time_of_msg = System.currentTimeMillis()/1000;
Now I would like to call the function
void setAttribute(String name, Object value)
and pass it the value of time_of_msg.
The compile is giving me the error "setAttribute(java.lang.String, java.lang.Object) in ... cannot be applied to (java.lang.String, long).
I have tried casting, "toString()", and everything else I can think to do, but it continues to throw errors.
Any suggestions?
Thanks in advance,
~Lindsay