A sufficient optimality criterion in continuous time programming for generalized convex functions