[ create a new paste ] login | about

Link: http://codepad.org/YAjixarF    [ raw code | output | fork ]

C++, pasted on Sep 15:
1
2
3
4
5
6
7
8
9
10
#include<iostream>
using namespace std;
int main()
{
    std::time_t t = std::time(0);  // t is an integer type
    float timestamp = t;
    cout << "Stempel: " << timestamp;
    cout << "\nStempel: " << t;
    return 0;
}


Output:
1
2
Stempel: 1.63171e+09
Stempel: 1631706077


Create a new paste based on this one


Comments: