Anonymous user
Take notes on the command line: Difference between revisions
m
→{{header|uBasic/4tH}}
Walterpachl (talk | contribs) (→{{header|REXX}}: Refurbished and rexx notes ? added) |
imported>Thebeez |
||
Line 3,227:
=={{header|uBasic/4tH}}==
{{works with|
The lack of built-in high level time and date functions makes it more difficult than necessary, since they have to be implemented by user defined functions.
<syntaxhighlight lang="text">If Cmd (0) > 1 Then ' if there are commandline arguments
Line 3,280:
g@ = g@ - FUNC(_Monthdays (c@-1, f@))
' Print a@, d@, e@, f@
Return (Join (Str(b@), FUNC(_Format (c@,
_TimeStr ' convert epoch to time string
Param (1)
Return (Join(Str((a@%86400)/3600), FUNC(_Format ((a@%3600)/60,
_Format Param (2) : Return (Join (Iif (a@<10, Join(b@, "0"), b@), Str (a@)))
Line 3,297:
Anyways, it seems this task is DONE!
</pre>
=={{header|UNIX Shell}}==
Bash version
|