Probably a beginner's mistake. The conversation seems to work but multiplying with 1000 gives a wrong value.
Time2: 1620597600 -> OK
Time3: 1620597600 -> OK
Time4: 1394929408-> * 1000 -> wrong
Any ideas?
B4X:
long int sec = (long int)mktime(&timeinfo); // make time_t
//const time_t sec = mktime(&timeinfo); // make time_t
printf("Time2: %ld\n",sec);
long int ep=(long int)sec;
printf("Time3: %ld\n",ep);
ep=ep*1000;
printf("Time4: %ld\n",ep);
The following data types are available in B4R: Numeric types: Byte: 0 - 255 Int (2 bytes): -32768 - 32768. Similar to Short type in other B4X tools. UInt (2 bytes): 0 - 65535. Long (4 bytes): -2,147,483,648 - 2,147,483,647. Similar to Int type in other B4X tools. ULong (4 bytes): 0 -...