You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
534 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "basicTimeStamp.h"
  2. void basicTimeStamp::setCurrent(void)
  3. {
  4. m_lTimeStamp = time(NULL);
  5. struct tm loc_tm = *localtime(&m_lTimeStamp);
  6. struct tm gmt_tm = *gmtime(&m_lTimeStamp);
  7. }
  8. void basicTimeStamp::setUTS(time_t TS)
  9. {
  10. m_lTimeStamp = TS;
  11. struct tm loc_tm = *localtime(&m_lTimeStamp);
  12. struct tm gmt_tm = *gmtime(&m_lTimeStamp);
  13. }
  14. void basicTimeStamp::setLocal(time_t TS)
  15. {
  16. setlocale(LC_TIME, "el_GR.utf8");
  17. }
  18. time_t basicTimeStamp::getUTS(void)
  19. {
  20. return 0;
  21. }
  22. time_t basicTimeStamp::getLocal(void)
  23. {
  24. return 0;
  25. }