-
Beispiel :
Code:
d t1 s z inz(z'2002-12-02-01.01.01.000100')
d t2 s z inz(z'2002-12-02-01.01.01.000010')
d t3 s 20p 6
c/Exec SQl
c+ set :t3 = :t1 - :t2
c/End-exec
c eval *inLr = *on
c return
Ergebnis :
T3 = 00000000000000.000090
Aus dem Handbuch:
Zitat:
Timestamp duration
A timestamp duration represents a number of years,
months, days, hours, minutes, seconds, and
microseconds, expressed as a DECIMAL(20,6)
number. To be properly interpreted, the number
must have the format yyyymmddhhmmsszzzzzz,
where yyyy, mm, dd, hh, mm, ss, and zzzzzz
represent, respectively, the number of years,
months, days, hours, minutes, seconds, and
microseconds. The result of subtracting one
timestamp value from another is a timestamp
duration.
[/quote]
Similar Threads
-
By Mr.iSeries in forum IBM i Hauptforum
Antworten: 7
Letzter Beitrag: 25-01-07, 08:46
-
By GSM in forum IBM i Hauptforum
Antworten: 3
Letzter Beitrag: 28-10-05, 18:52
-
By denni in forum NEWSboard Programmierung
Antworten: 3
Letzter Beitrag: 05-01-04, 12:27
Berechtigungen
- Neue Themen erstellen: Nein
- Themen beantworten: Nein
- You may not post attachments
- You may not edit your posts
-
Foren-Regeln
|
Erweiterte Foren Suche
Google Foren Suche
Forum & Artikel Update eMail
AS/400 / IBM i
Server Expert Gruppen
Unternehmens IT
|
Kategorien online Artikel
- Big Data, Analytics, BI, MIS
- Cloud, Social Media, Devices
- DMS, Archivierung, Druck
- ERP + Add-ons, Business Software
- Hochverfügbarkeit
- Human Resources, Personal
- IBM Announcements
- IT-Karikaturen
- Leitartikel
- Load`n`go
- Messen, Veranstaltungen
- NEWSolutions Dossiers
- Programmierung
- Security
- Software Development + Change Mgmt.
- Solutions & Provider
- Speicher – Storage
- Strategische Berichte
- Systemmanagement
- Tools, Hot-Tips
Auf dem Laufenden bleiben
|
Bookmarks