Thanks Birgitta I’ll try
Paolo Salvatore
+393480397754
Directa sim
Via Buozzi 5
10121 - Torino
----------------
Questa e-mail e le informazioni ivi contenute, compresi eventuali allegati, possono avere contenuto confidenziale e/o riservato e sono rivolte esclusivamente ai destinatari indicati.
Chiunque la ricevesse per errore e' pregato di avvisare tempestivamente il mittente e di distruggerne il contenuto.
Qualsiasi duplicazione, diffusione, pubblicazione a terzi o altro utilizzo non autorizzato del contenuto di questa mail o dei suoi allegati e' vietato e potrebbe costituire un reato.
Directa non si assume alcuna responsabilita' per eventuali errori, omissioni o imprecisioni contenute in queste informazioni o per le conseguenze che ne derivano, ne' si ritiene in alcun modo vincolata da esse salvo eventuali accordi scritti.
Directa tratta i dati contenuti secondo la normativa in materia di protezione dei dati personali italiana, tra cui il D.lgs. 196/2003, come modificato dal D.lgs. n. 101 del 2018, ed europea, tra cui il Regolamento (UE) 2016/679. Il destinatario del messaggio potra' trovare maggiori informazioni su come Directa tratta i suoi dati o su quali sono i suoi diritti, consultando le nostre privacy policies all'indirizzo
www.directa.it nella sezione Privacy.
----------------
This e-mail and all information contained in or attached to it may have confidential or personal content and are intended solely for the addressee. If you are not the intended addressee, please immediately notify the sender and delete all content.
Any duplication, distribution, publication or other non authorised use of the information in this e-mail or attachments is prohibited and may be persecuted by law. Directa do not accept any legal responsibility for mistakes or incomplete information and any possible consequence that may arise from them, nor can be considered legally binded by the content, if not included in previous written agreements.
Directa treats personal data according to italian and european privacy regulation, among which D.lgs. 196/2003, as modified by D.lgs. 101/2018, and EU Regulation 2016/679. The intended addressee can find additional information on Directa's privacy policies and his rights by viewing our site
www.directa.it in the Privacy section.
Original Message:
Sent: 5/13/2022 1:37:00 PM
From: Birgitta Hauser
Subject: RE: Convert timestamp (local time) to UTC
There is a special register CURRENT_TIMEZONE.
If you subtract CURRENT_TIMEZONE from your timestamp then you get the UTC:
Values(Current_Timestamp - Current_Timezone);
------------------------------
Birgitta Hauser
Database and Software Engineer
Selfemployed - Modernization-Education-Consulting on IBM i
Kaufering
+49 170 5269964
------------------------------
Original Message:
Sent: Thu May 12, 2022 06:23 AM
From: Paolo Salvatore
Subject: Convert timestamp (local time) to UTC
Hi,
in a table I stored a timestamp expressed in my timezone (CEST or CET depends on day light saving time), now I have to read it and convert it to UTC.
I know there's the current offset register, but this is valid only now, if I have a timestamp relative to january, the current offset is wrong,
There's a simple method to covert it to utc?
Or I have to make a function with the range of the date where there's the daylight saving time or not?
Many thanks
------------------------------
Paolo Salvatore
------------------------------