Peer-to-peer (P2P) networks have attracted more and more attentions in recent years. The access control model is very important for network environment especially for the dynamic networks such as P2P networks. In this paper, a novel time-sensitive access control was proposed for the P2P networks. Firstly, the time point and time span described by the OCL (object constraint language) was introduced. Secondly, the access control model considering the time on-line probability for each peer, and selecting the neighbor peer based on the weighted value of time on-line and trust value was developed. Thirdly, two different type of weighted was introduced, i.e. static weight and adaptive weight. Then, the proposed time-sensitive access control model was coded on the well-known query cycle simulator. It is concluded that our proposed access control model was superior to the current access control model, in terms of file sharing quality and quantity.