If your Lagrangian satisfies
$$ \frac{\partial \mathcal L}{\partial t} = 0 $$
then you're happy, energy is conserved, etc. However, if the above doesn't hold, that doesn't necessarily mean energy isn't conserved; maybe your Lagrangian has a false explicit time dependency. For example:
$$ \mathcal L = \frac{m}{2}\dot x^2+kt\dot x $$
The above Lagrangian has $\partial \mathcal L/\partial t = k\dot x $ but I call that dependency fake (or as the experts like to say, "spurious") because it has the same equations of motion as this other Lagrangian:
$$ \mathcal L = \frac{m}{2}\dot x^2-kx $$
which has no explicit time dependency whatsoever, so energy is conserved. Specifically, this happened because you can shift derivatives around in your Lagrangian using integration by parts at the level of the action.
Similarly, the following Lagrangian
$$ \mathcal L = \frac{m}{2}\dot x^2+gt $$
also has a fake explicit time dependency, since you can remove $gt$ which is just a total time derivative, equivalent to a boundary term in the action.
On the other hand, the Lagrangian with variable mass
$$ \mathcal L = \frac{m(t)}{2}\dot x^2 $$
is bonafide explicit time-dependent. There's no trick here to avoid it; $\partial \mathcal L/\partial t \ne 0$ no matter what legal modifications you perform.
Finally, the following Lagrangian has a mixture of real and false explicit time-dependencies:
$$ \mathcal L = \frac{m(t)}{2}\dot x^2 -kx +gt $$
Its true explicit time dependency would be defined as $\partial \mathcal L/\partial t$ after all integration by parts that could be performed have been done so and all total derivatives have been removed. Therefore, the question is:
Given a generic Lagrangian, can its true explicit time dependency be determined in general?