What do you mean by "Julian Time"? If you mean the Julian Calendar, then it doesn't seem like that's what your programme is doing... It's working out the Gregorian date/time based on the input.
However,
this is the output format for the gmtime function, so you can grab the day/month/year... Then, whatever non-Gregorian calendar you're trying to get to, you just need to work backwards towards the epoch making corrections