From Nyanaponika Thera's introductory essay to The Four Nutriments of Life, it is clear that the Buddha did not go into the specifics of fasting, as there was no research on the topic at that time. He only taught his disciples to eat between sunrise and noon.
Others, again, have tried to solve the problem of the body's dependence on food by reducing nourishment below sustenance level and by long periods of fasting. This harsh and futile method of self-mortification the Buddha, too, had tried out and rejected before his Enlightenment, and had vividly described his experience in the Discourse on the Noble Quest (Ariya-pariyesana Sutta). Also later on, the Buddha never recommended periods of fasting beyond the abstention from solid food after noon enjoined upon bhikkhus, and in the periodic observance of the Eight or Ten Precepts. What the Buddha, as a teacher of the Middle Way, advised was moderation in eating, non-attachment to the taste of food, and wise reflection on nutriment.
As long as your fasting is not considered to be "self-mortification", then you can do as you please.