Quote Originally Posted by jamadagni
I tried using
Qt Code:
  1. struct tm now = *localtime(&time(NULL));
To copy to clipboard, switch view to plain text mode 
instead of
Qt Code:
  1. time_t timval = time(NULL); struct tm now = *localtime(&timval);
To copy to clipboard, switch view to plain text mode 
and got an error: Why?
What time(NULL) returns is not a left value so cannot be 'get-addressed'
, coz the return value is a temporary value and will be destroyed after the statement.

BTW can I know what the meaning of the 1136698157 number is?
read the manual please