In einer eMail vom 7/24/02 8:09:55 PM W. Europe Daylight Time schreibt
This email address is being protected from spambots. You need JavaScript enabled to view it.:
>
> Dear Mehdi,
Hi Mehdi,
Further input on your question. TTCN-3 also allows the use of ASN.1 (1997).
you
could use either UTCTime or GeneralizedTime date/time times which are
offered
by ASN.1 For further details, please refer to section 2.11 of John
Larmouth's book
"ASN.1 Complete". Alternatively, look at pages 199 and 201 of Olivier
Dubuisson's
book ASN.1- Communication betwen Heterogeneous Systems (June 5, 2000) for
further information on GeneralizedTime and UTCTime respectively.
You should also look at Annex D(normatie): Using other data types
with TTCN-3. Annex D is on page 150 of ETSI ES 201 873-1 (TTCN-3 Core
Notation).
This annex will help you to understand how to use ASN.1 with TTCN3.
Hope this helps.
Claude.
>
> there is no dedicated functionality in TTCN-3 to retrieve dates and
> times. You have to use the concept of external functions in order to
> provide date and/or time information to your TTCN-3 module.
>
> But then you are free to select the most appropriate format for your
> test suite. For example in a dedicated context a date in pure string
> format like "Wed Jul 24 20:04:12 CEST 2002" is the right choice.
>
> In a different context you would need perhaps a record structure like
>
> type record date {
> integer year,
> integer month,
> integer day
> }
>
> and so on.
>
> In case you just want to "measure" time, for example "when has one
> second passed" you should use the build-in timer concepts. However, this
> does not give you any information on the absolute time/date.
>
> With best regards,
>
> Theo
>
>