-
-
Save geneotech/b6e340d16c5ce4ff892c53aab766111b to your computer and use it in GitHub Desktop.
czas.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <ctime> | |
using namespace std; | |
int main() | |
{ | |
time_t now = time(0); | |
tm ltm; | |
localtime_s(<m, &now); | |
int godziny = ltm.tm_hour; | |
int minuty = ltm.tm_min; | |
system("pause"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment