MCPcopy
hub / github.com/thrasher-corp/gocryptotrader / unixTimestamp

Method unixTimestamp

engine/rpcserver.go:4015–4020  ·  view source on GitHub ↗

unixTimestamp returns given time in either unix seconds or unix nanoseconds, depending on the remoteControl/gRPC/timeInNanoSeconds boolean configuration.

(x time.Time)

Source from the content-addressed store, hash-verified

4013// unixTimestamp returns given time in either unix seconds or unix nanoseconds, depending
4014// on the remoteControl/gRPC/timeInNanoSeconds boolean configuration.
4015func (s *RPCServer) unixTimestamp(x time.Time) int64 {
4016 if s.Config.RemoteControl.GRPC.TimeInNanoSeconds {
4017 return x.UnixNano()
4018 }
4019 return x.Unix()
4020}
4021
4022// SetDataHistoryJobStatus sets a data history job's status
4023func (s *RPCServer) SetDataHistoryJobStatus(_ context.Context, r *gctrpc.SetDataHistoryJobStatusRequest) (*gctrpc.GenericResponse, error) {

Callers 10

GetTickerMethod · 0.95
GetTickersMethod · 0.95
GetOrderbookMethod · 0.95
GetOrderbooksMethod · 0.95
GetOrdersMethod · 0.95
GetManagedOrdersMethod · 0.95
GetOrderMethod · 0.95
GetTickerStreamMethod · 0.95

Calls

no outgoing calls

Tested by 1