Back to index

lightning-sunbird  0.9+nobinonly
Functions
formattm.c File Reference
#include "prtime.h"
#include <stdio.h>

Go to the source code of this file.

Functions

int main ()
 main()

Function Documentation

int main ( void  )

main()

Definition at line 44 of file formattm.c.

{
    char buffer[256];
    PRTime now;
    PRExplodedTime tod;

    now = PR_Now();
    PR_ExplodeTime(now, PR_LocalTimeParameters, &tod);
    (void)PR_FormatTime(buffer, sizeof(buffer),
        "%a %b %d %H:%M:%S %Z %Y", &tod);
    printf("%s\n", buffer);
    (void)PR_FormatTimeUSEnglish(buffer, sizeof(buffer),
        "%a %b %d %H:%M:%S %Z %Y", &tod);
    printf("%s\n", buffer);
    return 0;
}

Here is the call graph for this function: