Skip to content

__asctime__

time · scripts/time/__asctime__.m

: str = asctime (tm_struct)

Convert a time structure to a string using the following format: "ddd mmm mm HH:MM:SS yyyy\n".

For example:

asctime (localtime (time ()))
     ⇒  "Mon Feb 17 01:15:06 1997\n"

This is equivalent to ctime (time ()).