Suchen
Aktuell
- Aktuell
- Kommentare
- TagCloud
- Treiber Windows 7 Beta zu RC
Windows - 14.06.09 20:47 - Keine Kommentare
- Das Outlook Fenster kann nicht geöffnet werden
Windows - 25.05.09 18:53 - 3 Kommentare
- C# Snippet: Image per URL laden
Tutorials, .Net - 10.05.09 20:08 - 1 Kommentar
- USB LCD Control
Projekte, .Net - 04.04.09 11:12 - Keine Kommentare
- 32bit Anwendungen mit 64bit IIS7
Tutorials, Server, Windows, .Net - 17.03.09 20:05 - Keine Kommentare
- Lighttpd mit Mono: Error 500 Problem
Tutorials, Server, .Net - 08.03.09 07:55 - Keine Kommentare
.Net
AdoDB
Beta
Buchtipp
C#
CentOS
CoD
Collective
DBAL
Datenbanken
DiceFight
Funktion
HTML
HowTo
Intelligence
JSON
Konfiguration
LCD
Lighttpd
Linux
Mobile
Mono
MySQL
Oracle
Outlook
PHP
Postfix
PostgreSQL
Programme
Programming
Quake3
RC
RealURL
Rudiments
SMTPE
SQLRelay
SVN
Server
TYPO3
Timestamp
Treiber
Tutorial
USB
Url
Vista
Windows
bauer-martin.com
bm_chart
ffmpeg
x64
Randnotiz
jsonformat.de - JSON online Formatierer
jsonformat.de ist ein kostenloser Online JSON Formatierer.
Er bringt JSON-Strings in eine für das menschliche Auge leichter leserbare Form.
W3C
Tutorials, Datenbanken - 21.11.08 11:43 - Alter: 226 days - Keine Kommentare
Oracle und Funktion UNIX_TIMESTAMP
Tags: Oracle, MySQL, Timestamp
Bei MySQL gibt es eine ganz nützliche Funktion namens "UNIT_TIMESTAMP". Diese konvertiert einen MySQL-Timestamp in einen UNIX-Timestamp (Sekunden seit 01.01. 1970 01:00). Vor allem bei der Verwendung mit PHP ist dies oft sehr nützlich. Leider hat Oracle diese nicht Standardmäßig implementiert, so dass man sich diese erst nachträglich schreiben muss.
CREATE OR REPLACE FUNCTION unix_timestamp (oracletime IN DATE)
RETURN INTEGER AS
unixtime integer;
BEGIN
unixtime := (oracletime - to_date('19700101','YYYYMMDD')) * 86400;
RETURN unixtime;
END;
Kommentare
- Bis jetzt sind noch keine Kommentare geschrieben worden



