Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Using the Ctime function
 

 

 

This example shows a sample usage for the Ctime function to display the date and time.

/*using the ctime function*/
#include <stdio.h>
#include <time.h>

int main()
{
time_t tm;
tm = time(NULL);
printf(ctime(&tm));

return 0;
}

Information

This was tested on Visual C++ 6 and LCC Win 32

 

 
 

 

Download

ctime.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Display someone elses metatags(PHP)
horizontal scrolling text(Blitzbasic)
uppercase letters(CSS)
List al disk drives(VBScript)
File date last modified(ASP)
accept users input using input dialog box(Java)
create a folder(VB.net)
Atomic time(PHP)

    




Copyright © 2003 by programmershelp.co.uk