1
0

mine.cpp 348 B

1234567891011121314151617
  1. #include "mine.h"
  2. #include "common_tool.h"
  3. #include"tool_time.h"
  4. uint64_t mine_tool::get_down_time()
  5. {
  6. return tool_time::to_ms(m_attendance_start_time);
  7. }
  8. uint64_t mine_tool::get_work_time()
  9. {
  10. return tool_time::elapse_ms(m_attendance_start_time) ;
  11. }
  12. int32_t mine_tool::is_on_duty()
  13. {
  14. return get_down_time()>tool_time::morning_of_today_ms();
  15. }