2023-10-19

iso8601 time string

#include <chrono>

int main() {
  // 현재 시간을 가져옵니다.
  auto now = std::chrono::system_clock::now();

  // ISO 8601 포맷으로 시간을 만듭니다.
  std::string iso8601Time = std::to_string(now);

  // 시간을 출력합니다.
  std::cout << iso8601Time << std::endl;

  return 0;
}

댓글 없음:

댓글 쓰기

[siwg917] 공유기 mac 얻기, arp table에서 확인.

1. arp 요청함수. #include "lwip/netif.h" #include "lwip/ip4_addr.h" #include "lwip/etharp.h" #define ARP_RETRY...