AW: [Typo3-UG Oesterreich] problem mit geburtsdatum bei websitebenutzer
media.res | alex widschwendter
a.widschwendter at mediares.at
Thu Jan 27 12:14:45 CET 2005
yo,
> Genau so etwas hab ich mir gedacht.
> Jedoch muß ich die daten aus einer anderen db in die typo-db laden.
>
> Bin gerade am suchen wie ich per mysql meine ausgabe des datums in ein
> timestamp-format bringen kann und dann mit diesem wert
> Anschliessend die typo3-db füllen kann.
1) UNIX_TIMESTAMP() , UNIX_TIMESTAMP(date)
If called with no argument, returns a Unix timestamp (seconds since
'1970-01-01 00:00:00' GMT) as an unsigned integer. If UNIX_TIMESTAMP()
is called with a date argument, it returns the value of the argument as
seconds since '1970-01-01 00:00:00' GMT. date may be a DATE string, a
DATETIME string, a TIMESTAMP, or a number in the format YYMMDD or
YYYYMMDD in local time.
mysql> SELECT UNIX_TIMESTAMP();
-> 882226357
mysql> SELECT UNIX_TIMESTAMP('1997-10-04 22:23:00');
-> 875996580
2) INSERT INTO tbl_temp2 (fld_id)
SELECT tbl_temp1.fld_order_id
FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;
1+2 zusammenführen und loslegen ;-)
alex
More information about the TYPO3-at
mailing list