Hi,everyone!
I’ve just started learning Erlang, and I have a problem. I’m supposed to write a program which will create and register a process ‘time’ that returns current time (format hh:mm:ss) if sent a message ‘time’. (For current time use Erlang function time().) If sent a message ‘all’, the program should return the times when information about the time was asked for.
If anyone knows how to do this, I’d really appreciate the help!