Endurance Time Acceleration Functions are specially predesigned intensifying excitation functions that their amplitude increases with time. On the other hand, wavelet transform is a mathematical tool that indicates time variations of frequency in a signal. In this paper, an approach is presented for generating endurance time acceleration functions (ETAFs) whose response spectrum is compatible with the European Code regulations (EC8) elastic spectrum. Method applied is a modification of data in time and frequency domain. For this purpose, wavelet transform has been used to decompose a series of random points to several levels such that each level covers a special range of frequency, then every level is divided into the numbers of equal time intervals and each interval of time is multiplied by a variable. Subsequently, the mathematical unconstrained optimization algorithm is used to calculate the variables and minimize error between response and target spectra. The prosed procedure is used in two methods. Then with two methods, two different acceleration functions are produced.