Method: UserExtension.current_timestamp
- Defined in:
- lib/userextension/user_extension.rb
.current_timestamp ⇒ Object
Call this function this way “current_timestamp”. This function will return the current timestamp.
165 166 167 168 169 170 |
# File 'lib/userextension/user_extension.rb', line 165 def self. = Time.now = .strftime("%d-%m-%Y-%H-%M-%S") = .to_s return end |