Date and Time API Functions: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „This document lists most useful (and most often needed) functions. Be aware, that there are many more to be found in either the class references or via the bui…“)
 
Zeile 17: Zeile 17:
== TimeDuration ==
== TimeDuration ==
Timeduration instances represent a time-delta. (i.e. seconds).
Timeduration instances represent a time-delta. (i.e. seconds).

== Time Protocol ==

Time <code>now</code> => a time
::provides the current time of day
&nbsp;

''aTime'' <code>addSeconds:</code> ''nSeconds'' => a time
''aTime'' <code>addMinutes:</code> ''nMinutes'' => a time
''aTime'' <code>addHours:</code> ''nHours'' => a time
::to compute times
&nbsp;

''aTime'' <code>hours</code> => hours (0..24)
''aTime'' <code>minutes</code> => hours (0..59)
''aTime'' <code>seconds</code> => hours (0..59)
::to retrieve the hour, minute and second component:
&nbsp;



== Date Protocol ==
== Date Protocol ==

Version vom 19. September 2021, 00:04 Uhr

This document lists most useful (and most often needed) functions. Be aware, that there are many more to be found in either the class references or via the builtin class browser.

Reference: Date Time Timestamp TimeDuration

Back to Useful API Functions

Time[Bearbeiten]

Time instances represent a time-of-day (i.e. "hh:mm:ss" within a single day). Times are seldom used - usually timestamps are better suited.

Date[Bearbeiten]

Date instances represent a date (i.e. "dd-mm-yyyy"). Dates are seldom used - usually timestamps are better suited.

Timestamp[Bearbeiten]

Timestamp instances represent a particular point in time. (i.e. "dd-mm-yyyy hh:mm:ss").

TimeDuration[Bearbeiten]

Timeduration instances represent a time-delta. (i.e. seconds).

Date Protocol[Bearbeiten]

Date today => a date

provides the current date

 


TimeDuration Protocol[Bearbeiten]

Timestamp Protocol[Bearbeiten]

Timestamp now => a time

provides the current timestamp

 



Copyright © 2014-2024 eXept Software AG