Leser: 1
|< 1 2 >| | 18 Einträge, 2 Seiten |
1
2
3
use POSIX qw(locale_h strftime);
setlocale( LC_ALL, "de_DE.ISO8859-1" );
print strftime( "%p", localtime( time + 40000 ) );
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <time.h>
#include <stdio.h>
#include <locale.h>
int
main (void)
{
setlocale(LC_ALL, "de_DE.ISO8859-1");
time_t tt = time(NULL);
struct tm *t = localtime(&tt);
char s[100];
strftime(s, 100, "%p", t);
printf("%s\n", s);
return 0;
}
betterworld+2008-04-22 01:58:48--Code: (dl )1
2
3use POSIX qw(locale_h strftime);
setlocale( LC_ALL, "de_DE.ISO8859-1" );
print strftime( "%p", localtime( time + 40000 ) );
Quotetime([1208852200]) = 1208852200
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f82000
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10\0"..., 4096) = 2295
close(3) = 0
munmap(0xb7f82000, 4096) = 0
time([1208852200]) = 1208852200
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2295, ...}) = 0
...
KurtZ+2008-04-22 02:29:53--sag mal ... macht es Sinn bei deutschem locale AM oder PM abzufragen¿!?
|< 1 2 >| | 18 Einträge, 2 Seiten |