[ create a new paste ] login | about

Link: http://codepad.org/h8tn58ZF    [ 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 << "Stempel: " << t;
    return 0;
}


Output:
1
Stempel: 1.63171e+09Stempel: 1631705885


Create a new paste based on this one


Comments: