[tec10][omnibus­] to_date and to_time function example

"Brodeur, Gilles" <[email protected]>
Newsgroups gmane.comp.sysutils.tivoli.general
Message-ID <8D9555577C1FD145AECD883F229FD537253E1393__31027.4389725693$1366316547$gmane$org@ctelpme116.saq.qc.ca>
Hi list,

I am looking fo an example of those 2 commands, I want to override the defaults to get the full date and time.

>From the docs :

to_time(argument
[,'conversion_spec'])
to_date(argument
[,'conversion_spec'])
Converts the argument to a time
type. The argument can be of any
data type except a time type.
The comma (,) is required only if a
conversion string is specified.
If the argument is a string type, you
can specify a second argument
consisting of a conversion
specification to format the output.
This format is determined by the
POSIX strptime function. The default
format is %a %b %d %T %Y.
update mytab set my_utc_col = to_time('Thu
Dec 11 16:00:00 2003')
Chapter

Gilles Brodeur
Analyste Télé-Surveillance / Outils de Gestion
Tél. : 514-254-6000 x6869
Courriel d'équipe: LivraisonOutilsDeGestion-ListedeDistribution-XB5swX22BCD3fQ9qLvQP4Q@public.gmane.org


------------------


Information confidentielle : Le présent message, ainsi que tout fichier qui y est joint, est envoyé à l'intention exclusive de son ou de ses destinataires; il est de nature confidentielle et peut constituer une information privilégiée. Nous avertissons toute personne autre que le destinataire prévu que tout examen, réacheminement, impression, copie, distribution ou autre utilisation de ce message et de tout fichier qui y est joint est strictement interdit. Si vous n'êtes pas le destinataire prévu, veuillez en aviser immédiatement l'expéditeur par retour de courriel et supprimer ce message et tout document joint de votre système. Merci.

_______________________________________________
TME10 mailing list
[email protected]
Unsubscribe:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.