Slightly formal or literary; in casual speech さっき or たった今 are more common.
I called you just a moment ago.
Please forget what I said a moment ago.
Compound of 今 (ima, 'now') and 方 (kata, 'direction/time'), with rendaku voicing to gata. The exact historical derivation is uncertain, but the form is attested in classical Japanese.