#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <ctime>
int main() {
    time_t now = time(NULL); // 現在のエポック時間を取得
    tm* time = localtime(&now); // それを人が読める形式に変換
    std::cout << "現在の日付: "
        << (1900 + time->tm_year) << "/"
        << (1 + time->tm_mon) << "/"
        << time->tm_mday << "\n";
    std::cout << "現在の時間: "
        << time->tm_hour << ":"
        << time->tm_min << ":"
        << time->tm_sec << "\n";
}
