struct CliGen::Timeparse::RelativeOperation

Defined in:

cligen/timeparse/relative_operation.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(sign : Int32, quantity : Int32, unit : CliGen::Timeparse::OperationUnit) #

Class Method Detail

def self.get_operations(raw : String) : Array(RelativeOperation) #

Just handles retrieving the operations from a bare string and returning an array of them for use in applying them in a row


Instance Method Detail

def apply(time : Time) : Time #

def quantity : Int32 #

def sign : Int32 #