0

How to get index of week from time_point_sec(current_time_point())

uint64_t addDay = (86400 * 3);
time_point_sec start_at = time_point_sec(current_time_point());
time_point_sec end_at = create_at + addDay;

uint64_t week_index = xxx(end_at);
print_f("week index : %",week_index);
// week index : 2 ***if end_at is tuesday
// week index : 5 ***if end_at is friday

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.