GMT Offset

Question: Define a function 'gmtoff' that takes in two timestamps (-12h) as arguments and returns the GMT offset of 'y' in relation to 'x'.

Example

                                
                                q)gmtoff[.z.p;.z.P]
-4f
q)gmtoff[23:00+.z.d;00:00+.z.d+1]
1f
                                
                            

Solution

Tags:
functions temporal
Searchable Tags
algorithms api architecture asynchronous c csv data structures dictionaries disk feedhandler finance functions ingestion ipc iterators machine learning math multithreading optimizations realtime shared library sql statistics streaming strings tables temporal utility websockets