0

If I'd like to add a DATE_TIME to a logger for example I'd like to avoid creating a local variable for that. Is there any similar statement as

create {DATE_TIME}.make_now.formatted_out ("yyyy-mm-dd hh:mi:ss")

which is not possible?

Pipo
  • 4,653
  • 38
  • 47

1 Answers1

1

A parenthesis expression can be used as a target of a qualified call:

(create {DATE_TIME}.make_now).formatted_out ("yyyy-mm-dd hh:mi:ss")
Alexander Kogtenkov
  • 5,770
  • 1
  • 27
  • 35